Skip to content

Commit 5e8eecb

Browse files
authored
Merge pull request #317 from pikrzysztof/master
Fix defaults functions for key-only configs
2 parents 84df787 + 723ddd6 commit 5e8eecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/functions/sudo/defaults.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def defaults(*args)
4343
def defaults_entry(key, config)
4444
entry = "Defaults\t#{key}"
4545

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

4949
operator = '='

0 commit comments

Comments
 (0)