]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
in dhcp_agent, always use quantum.conf root_helper
authorPeter Feiner <peter@gridcentric.ca>
Wed, 8 May 2013 21:53:21 +0000 (17:53 -0400)
committerPeter Feiner <peter@gridcentric.ca>
Wed, 8 May 2013 22:14:27 +0000 (18:14 -0400)
Fixes bug #1178003.

For the most part, the dhcp agent uses the root_helper setting from the [AGENT]
section of /etc/quantum/quantum.conf. However, in a couple of spots, the
root_helper setting from the [DEFAULT] section of /etc/quantum/dhcp_agent.ini
was being used.

Change-Id: Id2f3140374a705cf7a0d2a784e4f321cc54f602e

quantum/agent/dhcp_agent.py

index 7c64d8d82549ffc7acc23546cdc4554ba49c510b..595677a696a02c1162610ce1d8b2fa17dc4890c8 100644 (file)
@@ -323,7 +323,7 @@ class DhcpAgent(manager.Manager):
         pm = external_process.ProcessManager(
             self.conf,
             network.id,
-            self.conf.root_helper,
+            self.root_helper,
             self._ns_name(network))
         pm.enable(callback)
 
@@ -331,7 +331,7 @@ class DhcpAgent(manager.Manager):
         pm = external_process.ProcessManager(
             self.conf,
             network.id,
-            self.conf.root_helper,
+            self.root_helper,
             self._ns_name(network))
         pm.disable()