We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c0f81b0 + c4b446f commit cd24e6dCopy full SHA for cd24e6d
manifests/keyring.pp
@@ -43,7 +43,7 @@
43
ensure_resource('file', $dir, { ensure => 'directory', mode => '0755', })
44
if $source and $content {
45
fail("Parameters 'source' and 'content' are mutually exclusive")
46
- } elsif ! $source and ! $content {
+ } elsif $ensure == 'present' and ! $source and ! $content {
47
fail("One of 'source' or 'content' parameters are required")
48
}
49
0 commit comments