diff options
author | Daniele Sluijters <daenney@users.noreply.github.com> | 2016-01-08 15:46:12 +0100 |
---|---|---|
committer | Daniele Sluijters <daenney@users.noreply.github.com> | 2016-01-08 16:24:30 +0100 |
commit | e28c3e8485304bd885f2bf23e63637f513f13399 (patch) | |
tree | aae44c173d3610ef8f95109a3dd78e0dbc878411 /manifests | |
parent | a54d08ccaee099cb2fc66924ee2b967cea3e1f3e (diff) |
Don't fail immediatly if legacy_origin/origins not set
Closes #37
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 4 | ||||
-rw-r--r-- | manifests/params.pp | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 7fe64ca..3d9f2df 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -20,6 +20,10 @@ class unattended_upgrades ( $notify_update = undef, ) inherits ::unattended_upgrades::params { + if $legacy_origin == undef or $origins == undef { + fail('Please explicitly specify unattended_upgrades::legacy_origin and unattended_upgrades::origins.') + } + validate_bool( $install_on_shutdown, $legacy_origin, diff --git a/manifests/params.pp b/manifests/params.pp index d1b439d..e8ed8c9 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -82,7 +82,8 @@ class unattended_upgrades::params { } } default: { - fail('Please explicitly specify unattended_upgrades::legacy_origin and unattended_upgrades::origins') + $legacy_origin = undef + $origins = undef } } } |