From 91045b3be907b074cb1e0165b269d439aee43a26 Mon Sep 17 00:00:00 2001 From: Martin Magr Date: Mon, 3 Feb 2014 14:31:26 +0100 Subject: [PATCH] Don't match commented [DEFAULT] Class ceilometer::agent::compute fails when there are [DEFAULT] sections commented. This patch is fixing this issue. For more info check https://bugzilla.redhat.com/show_bug.cgi?id=1060712 Change-Id: I6d13f780f63af8798d94b49246576d1e144a4540 (cherry picked from commit a46bbc4c5179d4988f4beec0fc548c91300008a2) --- manifests/agent/compute.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifests/agent/compute.pp b/manifests/agent/compute.pp index acb60ea..c07d717 100644 --- a/manifests/agent/compute.pp +++ b/manifests/agent/compute.pp @@ -65,12 +65,12 @@ class ceilometer::agent::compute ( line => 'notification_driver=nova.openstack.common.notifier.rpc_notifier', path => '/etc/nova/nova.conf', - after => '\[DEFAULT\]', + after => '^\s*\[DEFAULT\]', notify => Service['nova-compute']; 'nova-notification-driver-ceilometer': line => 'notification_driver=ceilometer.compute.nova_notifier', path => '/etc/nova/nova.conf', - after => '\[DEFAULT\]', + after => '^\s*\[DEFAULT\]', notify => Service['nova-compute']; } -- 2.45.2