diff --git a/manifests/proxy/ceilometer.pp b/manifests/proxy/ceilometer.pp index d2a66422..a30f045f 100644 --- a/manifests/proxy/ceilometer.pp +++ b/manifests/proxy/ceilometer.pp @@ -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; diff --git a/spec/classes/swift_proxy_ceilometer_spec.rb b/spec/classes/swift_proxy_ceilometer_spec.rb index 4dbb2f44..24424172 100644 --- a/spec/classes/swift_proxy_ceilometer_spec.rb +++ b/spec/classes/swift_proxy_ceilometer_spec.rb @@ -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') }