-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set default value for $repo_pin to undef #334
Conversation
@@ -5,7 +5,7 @@ | |||
$nodejs_package_ensure = 'present' | |||
$repo_enable_src = false | |||
$repo_ensure = 'present' | |||
$repo_pin = false | |||
$repo_pin = undef |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not making this a data type for now as want to keep the diff small
This change should continue to work with earlier 2/3 versions of soft dependency apt |
spec/classes/nodejs_spec.rb
Outdated
@@ -122,13 +122,13 @@ | |||
end | |||
end | |||
|
|||
context 'and repo_pin not set' do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original statement is probably more accurate. If you set something to undef
, you're not actually setting it. The parameter default gets used (which happens to be undef
).
puppetlabs/puppetlabs-apt#711 introduced data types in the apt module, and false is no longer a valid value for the apt::source $pin parameter Fixes #333
puppetlabs/puppetlabs-apt#711 introduced data types in the apt module, and false is no longer a valid value for the apt::source $pin parameter
Fixes #333