solve duplicate declaration issue for python-openstackclient
when having a controller node with several modules that use puppet-openstacklib the package python-openstackclient is already declared. because openstacklib adds the tag 'openstack' to the resource, we have to do it here to. otherwise ensure_resource does not recognize it and we have a duplicate declaration for the package. Change-Id: Icf341ea92764f2ddb60b0e7ace09a56febe59545 Closes-Bug: #1483663
This commit is contained in:
parent
4bbdb70dbf
commit
7128d96dde
@ -30,5 +30,5 @@ class glance(
|
||||
}
|
||||
}
|
||||
|
||||
ensure_resource('package', 'python-openstackclient', {'ensure' => $package_ensure})
|
||||
ensure_resource('package', 'python-openstackclient', {'ensure' => $package_ensure, tag => 'openstack'})
|
||||
}
|
||||
|
@ -31,7 +31,9 @@ describe 'glance' do
|
||||
'mode' => '0770'
|
||||
)}
|
||||
|
||||
it { is_expected.to contain_package('python-openstackclient') }
|
||||
it { is_expected.to contain_package('python-openstackclient').with(
|
||||
:tag => 'openstack'
|
||||
)}
|
||||
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user