ceilometer: Fix wrong rendering of ignore_projects
The ignore_projects option is not a multi-valued option but accepts
only comma-separated strings.
Change-Id: I7977ea4c84417078457afb0d0834934ba5481e5d
(cherry picked from commit e751dda37b
)
This commit is contained in:
parent
a7719c7dcf
commit
642bd4006c
@ -213,7 +213,7 @@ class swift::proxy::ceilometer(
|
||||
'filter:ceilometer/control_exchange': value => $control_exchange;
|
||||
'filter:ceilometer/paste.filter_factory': value => 'ceilometermiddleware.swift:filter_factory';
|
||||
'filter:ceilometer/nonblocking_notify': value => $nonblocking_notify;
|
||||
'filter:ceilometer/ignore_projects': value => $ignore_projects;
|
||||
'filter:ceilometer/ignore_projects': value => join(any2array($ignore_projects), ',');
|
||||
'filter:ceilometer/auth_url': value => $auth_url;
|
||||
'filter:ceilometer/auth_type': value => $auth_type;
|
||||
'filter:ceilometer/project_name': value => $project_name_real;
|
||||
|
@ -46,7 +46,7 @@ describe 'swift::proxy::ceilometer' do
|
||||
:topic => 'notifications',
|
||||
:control_exchange => 'swift',
|
||||
:nonblocking_notify => true,
|
||||
:ignore_projects => ['services'],
|
||||
:ignore_projects => ['services', 'admin'],
|
||||
:auth_url => 'http://127.0.0.1:5000',
|
||||
:auth_type => 'password',
|
||||
:project_domain_name => 'Default',
|
||||
@ -64,7 +64,7 @@ describe 'swift::proxy::ceilometer' do
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/topic').with_value('notifications') }
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/control_exchange').with_value('swift') }
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/nonblocking_notify').with_value('true') }
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/ignore_projects').with_value(['services']) }
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/ignore_projects').with_value('services,admin') }
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/auth_url').with_value('http://127.0.0.1:5000') }
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/auth_type').with_value('password') }
|
||||
it { is_expected.to contain_swift_proxy_config('filter:ceilometer/project_name').with_value('services') }
|
||||
|
Loading…
Reference in New Issue
Block a user