Skip to content

Commit

Permalink
Fix defaults functions for key-only configs
Browse files Browse the repository at this point in the history
  • Loading branch information
pikrzysztof committed Nov 8, 2024
1 parent 84df787 commit 723ddd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/functions/sudo/defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def defaults(*args)
def defaults_entry(key, config)
entry = "Defaults\t#{key}"

unless config.nil?
unless config.nil? || config.equal?(:undef)
entry.concat((config['list']).to_s) if config.key? 'list'

operator = '='
Expand Down

0 comments on commit 723ddd6

Please sign in to comment.