Skip to content

Commit c4b446f

Browse files
committed
apt::keyring: Require "source" or "content" only if ensure=present (fixes #1197)
1 parent 9b6aa36 commit c4b446f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/keyring.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
ensure_resource('file', $dir, { ensure => 'directory', mode => '0755', })
4444
if $source and $content {
4545
fail("Parameters 'source' and 'content' are mutually exclusive")
46-
} elsif ! $source and ! $content {
46+
} elsif $ensure == 'present' and ! $source and ! $content {
4747
fail("One of 'source' or 'content' parameters are required")
4848
}
4949

0 commit comments

Comments
 (0)