From a1c70f2a7519bd7482b2834f380f2a9f5f61fb5a Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Tue, 31 May 2016 14:43:14 +1000 Subject: [PATCH] neutron-legacy: Consistently use `--config-file foo` This change adjusts a few instances of `--config-file=foo` to `--config-file foo` (no `=`) in order to make neutron command lines more consistent and easier to match in sudoers/rootwrap filters. This is particularly useful for oslo.privsep, which needs to start a helper command with the same `--config-file` arguments (see Ia9675dff9232e0e987a836ecaf9e842eb5c3cb18). Change-Id: I91fe18f66f3c3bc2ccd1ca8be91be2915ed3e3ec --- lib/neutron-legacy | 8 ++++---- lib/neutron_plugins/services/l3 | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/neutron-legacy b/lib/neutron-legacy index 5e5207bc63..73123ef1d5 100644 --- a/lib/neutron-legacy +++ b/lib/neutron-legacy @@ -297,7 +297,7 @@ function _determine_config_server { } function _determine_config_l3 { - local opts="--config-file $NEUTRON_CONF --config-file=$Q_L3_CONF_FILE" + local opts="--config-file $NEUTRON_CONF --config-file $Q_L3_CONF_FILE" if is_service_enabled q-fwaas; then opts+=" --config-file $Q_FWAAS_CONF_FILE" fi @@ -524,7 +524,7 @@ function start_mutnauq_l2_agent { } function start_mutnauq_other_agents { - run_process q-dhcp "$AGENT_DHCP_BINARY --config-file $NEUTRON_CONF --config-file=$Q_DHCP_CONF_FILE" + run_process q-dhcp "$AGENT_DHCP_BINARY --config-file $NEUTRON_CONF --config-file $Q_DHCP_CONF_FILE" if is_service_enabled neutron-vpnaas; then : # Started by plugin @@ -532,8 +532,8 @@ function start_mutnauq_other_agents { run_process q-l3 "$AGENT_L3_BINARY $(determine_config_files neutron-l3-agent)" fi - run_process q-meta "$AGENT_META_BINARY --config-file $NEUTRON_CONF --config-file=$Q_META_CONF_FILE" - run_process q-lbaas "$AGENT_LBAAS_BINARY --config-file $NEUTRON_CONF --config-file=$LBAAS_AGENT_CONF_FILENAME" + run_process q-meta "$AGENT_META_BINARY --config-file $NEUTRON_CONF --config-file $Q_META_CONF_FILE" + run_process q-lbaas "$AGENT_LBAAS_BINARY --config-file $NEUTRON_CONF --config-file $LBAAS_AGENT_CONF_FILENAME" run_process q-metering "$AGENT_METERING_BINARY --config-file $NEUTRON_CONF --config-file $METERING_AGENT_CONF_FILENAME" if [ "$VIRT_DRIVER" = 'xenserver' ]; then diff --git a/lib/neutron_plugins/services/l3 b/lib/neutron_plugins/services/l3 index a5a6c81ea4..3a6f6eb53f 100644 --- a/lib/neutron_plugins/services/l3 +++ b/lib/neutron_plugins/services/l3 @@ -83,7 +83,7 @@ SUBNETPOOL_SIZE_V4=${SUBNETPOOL_SIZE_V4:-24} SUBNETPOOL_SIZE_V6=${SUBNETPOOL_SIZE_V6:-64} function _determine_config_l3 { - local opts="--config-file $NEUTRON_CONF --config-file=$Q_L3_CONF_FILE" + local opts="--config-file $NEUTRON_CONF --config-file $Q_L3_CONF_FILE" echo "$opts" }