Skip to content
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

Merged
merged 1 commit into from
Nov 13, 2017

Conversation

juniorsysadmin
Copy link
Member

@juniorsysadmin juniorsysadmin commented Nov 12, 2017

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

@@ -5,7 +5,7 @@
$nodejs_package_ensure = 'present'
$repo_enable_src = false
$repo_ensure = 'present'
$repo_pin = false
$repo_pin = undef
Copy link
Member Author

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

@juniorsysadmin juniorsysadmin changed the title Set default value for $repo_pin to undef WIP: Set default value for $repo_pin to undef Nov 12, 2017
@juniorsysadmin
Copy link
Member Author

This change should continue to work with earlier 2/3 versions of soft dependency apt

@juniorsysadmin juniorsysadmin force-pushed the fix-apt-pin branch 2 times, most recently from 4fd111a to 81d99c4 Compare November 12, 2017 11:54
@juniorsysadmin juniorsysadmin changed the title WIP: Set default value for $repo_pin to undef Set default value for $repo_pin to undef Nov 12, 2017
@@ -122,13 +122,13 @@
end
end

context 'and repo_pin not set' do
Copy link
Member

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 voxpupuli#333
alexjfisher
alexjfisher previously approved these changes Nov 13, 2017
@alexjfisher alexjfisher dismissed their stale review November 13, 2017 09:38

Just want to check something

@alexjfisher alexjfisher merged commit 8f3a8fa into voxpupuli:master Nov 13, 2017
@juniorsysadmin juniorsysadmin deleted the fix-apt-pin branch November 13, 2017 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants