diff options
author | varac <varacanero@zeromail.org> | 2016-11-04 14:39:23 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-11-04 14:39:23 +0100 |
commit | 5d001efb65f4ac2afa39d17b7b62d4f861f450a3 (patch) | |
tree | 88b282297150f4890fce19182206dc9bfa0f3a9d /manifests/apt_conf.pp | |
parent | 33c61e8df59db1abbed379a9e9790946060a8f1e (diff) | |
parent | 584b7aad338206026d62d846122e6bef532a2d2a (diff) |
Merge remote-tracking branch 'shared/master' into leap_master
Diffstat (limited to 'manifests/apt_conf.pp')
-rw-r--r-- | manifests/apt_conf.pp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/apt_conf.pp b/manifests/apt_conf.pp index 949f615..fa8cfa3 100644 --- a/manifests/apt_conf.pp +++ b/manifests/apt_conf.pp @@ -1,15 +1,15 @@ define apt::apt_conf( $ensure = 'present', - $source = '', + $source = undef, $content = undef, $refresh_apt = true ) { - if $source == '' and $content == undef { + if $source == undef and $content == undef { fail("One of \$source or \$content must be specified for apt_conf ${name}") } - if $source != '' and $content != undef { + if $source != undef and $content != undef { fail("Only one of \$source or \$content must specified for apt_conf ${name}") } |