diff options
author | varac <varacanero@zeromail.org> | 2016-11-03 00:45:34 +0100 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-11-04 10:16:29 +0100 |
commit | 04c73a73d46ccea8df6cce145ed6a516d2150d3a (patch) | |
tree | c8ef05e2355dec77c9e07c4cd20bb8bcf490128d /manifests/apt_conf.pp | |
parent | 6baa09d71eac070cbe2bd71afb27064bef7c809d (diff) |
Use undef as default for source parameter
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}") } |