Skip to content

Commit

Permalink
Don't fail immediatly if legacy_origin/origins not set
Browse files Browse the repository at this point in the history
Closes #37
  • Loading branch information
daenney committed Jan 8, 2016
1 parent a54d08c commit e28c3e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
$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,
Expand Down
3 changes: 2 additions & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@
}
}
default: {
fail('Please explicitly specify unattended_upgrades::legacy_origin and unattended_upgrades::origins')
$legacy_origin = undef
$origins = undef
}
}
}

0 comments on commit e28c3e8

Please sign in to comment.