Use undef for package/service name
... instead of booleans, so that we can implement type enforcement more easily. Change-Id: I5d327a665e18cdaeaa9cdaea85a6fc92f320098d
This commit is contained in:
parent
7f02cb0ea0
commit
2013f99622
@ -14,7 +14,7 @@ class placement::params {
|
||||
$common_package_name = 'openstack-placement-common'
|
||||
$python_package_name = 'python3-placement'
|
||||
$osc_package_name = 'python3-osc-placement'
|
||||
$service_name = false
|
||||
$service_name = undef
|
||||
$public_url = 'http://127.0.0.1/placement'
|
||||
$internal_url = 'http://127.0.0.1/placement'
|
||||
$admin_url = 'http://127.0.0.1/placement'
|
||||
@ -31,7 +31,7 @@ class placement::params {
|
||||
$service_name = 'placement-api'
|
||||
}
|
||||
default: {
|
||||
$service_name = false
|
||||
$service_name = undef
|
||||
}
|
||||
}
|
||||
$public_url = 'http://127.0.0.1'
|
||||
|
@ -81,11 +81,11 @@ describe 'placement::api' do
|
||||
{ :service_name => 'placement-api',
|
||||
:package_name => 'placement-api'}
|
||||
else
|
||||
{ :service_name => false,
|
||||
{ :service_name => nil,
|
||||
:package_name => 'placement-api'}
|
||||
end
|
||||
when 'RedHat'
|
||||
{ :service_name => false,
|
||||
{ :service_name => nil,
|
||||
:package_name => 'openstack-placement-api'}
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user