CI broken with "Cannot reassign variable package_provider"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
puppet-openstacklib |
Fix Released
|
Critical
|
Unassigned |
Bug Description
This review, https:/
nothing to the module, fails to pass the CI:
1) openstacklib class default parameters should work with no errors
Host 'centos-70-x64' exited with 1 running:
puppet apply --verbose --detailed-
Last 10 lines of output were:
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Info: Loading facts
Error: Cannot reassign variable package_provider at /tmp/apply_
Error: Cannot reassign variable package_provider at /tmp/apply_
The error is not obvious from the code.
Changed in puppet-openstacklib: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in puppet-openstacklib: | |
status: | Confirmed → Fix Released |
I repeat here the comment in the fix:
This commit[1] in puppet-stdlib adds the package_provider. Since puppetlabs-stdlib 4.11 is pulled out of the repo[2], it has this patch. The declaration of the $package_provider variable is no longer possible. This patch removes it and uses the fact.
[1] https:/ /github. com/puppetlabs/ puppetlabs- stdlib/ commits/ e1a9bf506359d1e 84d13b857ca6fa5 e556ceeddd logs.openstack. org/90/ 304190/ 1/check/ gate-puppet- openstacklib- puppet- beaker- rspec-centos- 7/9a2160a/ console. html#_2016- 04-11_15_ 55_23_678
[2] http://