Skip to content

Commit

Permalink
Fix positional argument deprecations with ERB.new
Browse files Browse the repository at this point in the history
Drop second argument as safe_level was removed.
Change third argument for trim_mode to keyword argument.
  • Loading branch information
jrafanie committed Oct 29, 2024
1 parent 1d6a445 commit 95c915c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/miq_config_sssd_ldap/sssd_conf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create
LOGGER.debug("Invoked #{self.class}##{__method__}")

begin
File.write(dest_path, ERB.new(File.read(src_path), nil, '-').result(binding))
File.write(dest_path, ERB.new(File.read(src_path), :trim_mode => '-').result(binding))
FileUtils.chmod(0o600, dest_path)
rescue Errno::ENOENT, IndexError => e
LOGGER.fatal(e.message)
Expand Down

0 comments on commit 95c915c

Please sign in to comment.