Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit ad0abc7

Browse files
author
Sean Dague
committed
fix bash8 indent problems in lib/neutron and friends
Change-Id: Ia83ce84b792494800fbfe7baa6423c8de9260014
1 parent 0624eab commit ad0abc7

4 files changed

Lines changed: 28 additions & 28 deletions

File tree

lib/neutron

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ NEUTRON_AUTH_CACHE_DIR=${NEUTRON_AUTH_CACHE_DIR:-/var/cache/neutron}
7979
# Support entry points installation of console scripts
8080
if [[ -d $NEUTRON_DIR/bin/neutron-server ]]; then
8181
NEUTRON_BIN_DIR=$NEUTRON_DIR/bin
82-
else
83-
NEUTRON_BIN_DIR=$(get_python_exec_prefix)
82+
else
83+
NEUTRON_BIN_DIR=$(get_python_exec_prefix)
8484
fi
8585

8686
NEUTRON_CONF_DIR=/etc/neutron
@@ -373,7 +373,7 @@ function create_neutron_initial_network() {
373373
iniset $Q_L3_CONF_FILE DEFAULT router_id $ROUTER_ID
374374
fi
375375
fi
376-
fi
376+
fi
377377
}
378378

379379
# init_neutron() - Initialize databases, etc.
@@ -404,7 +404,7 @@ function install_neutron_agent_packages() {
404404
fi
405405

406406
if is_service_enabled q-lbaas; then
407-
neutron_agent_lbaas_install_agent_packages
407+
neutron_agent_lbaas_install_agent_packages
408408
fi
409409
}
410410

@@ -414,13 +414,13 @@ function start_neutron_service_and_check() {
414414
local cfg_file
415415
local CFG_FILE_OPTIONS="--config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE"
416416
for cfg_file in ${Q_PLUGIN_EXTRA_CONF_FILES[@]}; do
417-
CFG_FILE_OPTIONS+=" --config-file /$cfg_file"
417+
CFG_FILE_OPTIONS+=" --config-file /$cfg_file"
418418
done
419419
# Start the Neutron service
420420
screen_it q-svc "cd $NEUTRON_DIR && python $NEUTRON_BIN_DIR/neutron-server $CFG_FILE_OPTIONS"
421421
echo "Waiting for Neutron to start..."
422422
if ! timeout $SERVICE_TIMEOUT sh -c "while ! wget --no-proxy -q -O- http://$Q_HOST:$Q_PORT; do sleep 1; done"; then
423-
die $LINENO "Neutron did not start"
423+
die $LINENO "Neutron did not start"
424424
fi
425425
}
426426

@@ -712,9 +712,9 @@ function _neutron_setup_rootwrap() {
712712
# Set up ``rootwrap.conf``, pointing to ``$NEUTRON_CONF_DIR/rootwrap.d``
713713
# location moved in newer versions, prefer new location
714714
if test -r $NEUTRON_DIR/etc/neutron/rootwrap.conf; then
715-
sudo cp -p $NEUTRON_DIR/etc/neutron/rootwrap.conf $Q_RR_CONF_FILE
715+
sudo cp -p $NEUTRON_DIR/etc/neutron/rootwrap.conf $Q_RR_CONF_FILE
716716
else
717-
sudo cp -p $NEUTRON_DIR/etc/rootwrap.conf $Q_RR_CONF_FILE
717+
sudo cp -p $NEUTRON_DIR/etc/rootwrap.conf $Q_RR_CONF_FILE
718718
fi
719719
sudo sed -e "s:^filters_path=.*$:filters_path=$Q_CONF_ROOTWRAP_D:" -i $Q_RR_CONF_FILE
720720
sudo chown root:root $Q_RR_CONF_FILE
@@ -848,11 +848,11 @@ function _ssh_check_neutron() {
848848
# please refer to ``lib/neutron_thirdparty/README.md`` for details
849849
NEUTRON_THIRD_PARTIES=""
850850
for f in $TOP_DIR/lib/neutron_thirdparty/*; do
851-
third_party=$(basename $f)
852-
if is_service_enabled $third_party; then
853-
source $TOP_DIR/lib/neutron_thirdparty/$third_party
854-
NEUTRON_THIRD_PARTIES="$NEUTRON_THIRD_PARTIES,$third_party"
855-
fi
851+
third_party=$(basename $f)
852+
if is_service_enabled $third_party; then
853+
source $TOP_DIR/lib/neutron_thirdparty/$third_party
854+
NEUTRON_THIRD_PARTIES="$NEUTRON_THIRD_PARTIES,$third_party"
855+
fi
856856
done
857857

858858
function _neutron_third_party_do() {

lib/neutron_plugins/midonet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ function neutron_plugin_configure_dhcp_agent() {
4040
}
4141

4242
function neutron_plugin_configure_l3_agent() {
43-
die $LINENO "q-l3 must not be executed with MidoNet plugin!"
43+
die $LINENO "q-l3 must not be executed with MidoNet plugin!"
4444
}
4545

4646
function neutron_plugin_configure_plugin_agent() {
47-
die $LINENO "q-agt must not be executed with MidoNet plugin!"
47+
die $LINENO "q-agt must not be executed with MidoNet plugin!"
4848
}
4949

5050
function neutron_plugin_configure_service() {

lib/neutron_plugins/nec

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ function _neutron_setup_ovs_tunnels() {
101101
local id=0
102102
GRE_LOCAL_IP=${GRE_LOCAL_IP:-$HOST_IP}
103103
if [ -n "$GRE_REMOTE_IPS" ]; then
104-
for ip in ${GRE_REMOTE_IPS//:/ }
105-
do
106-
if [[ "$ip" == "$GRE_LOCAL_IP" ]]; then
107-
continue
108-
fi
109-
sudo ovs-vsctl --no-wait add-port $bridge gre$id -- \
110-
set Interface gre$id type=gre options:remote_ip=$ip
111-
id=`expr $id + 1`
112-
done
104+
for ip in ${GRE_REMOTE_IPS//:/ }
105+
do
106+
if [[ "$ip" == "$GRE_LOCAL_IP" ]]; then
107+
continue
108+
fi
109+
sudo ovs-vsctl --no-wait add-port $bridge gre$id -- \
110+
set Interface gre$id type=gre options:remote_ip=$ip
111+
id=`expr $id + 1`
112+
done
113113
fi
114114
}
115115

lib/neutron_plugins/nicira

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ function neutron_plugin_configure_dhcp_agent() {
5858
}
5959

6060
function neutron_plugin_configure_l3_agent() {
61-
# Nicira plugin does not run L3 agent
62-
die $LINENO "q-l3 should must not be executed with Nicira plugin!"
61+
# Nicira plugin does not run L3 agent
62+
die $LINENO "q-l3 should must not be executed with Nicira plugin!"
6363
}
6464

6565
function neutron_plugin_configure_plugin_agent() {
66-
# Nicira plugin does not run L2 agent
67-
die $LINENO "q-agt must not be executed with Nicira plugin!"
66+
# Nicira plugin does not run L2 agent
67+
die $LINENO "q-agt must not be executed with Nicira plugin!"
6868
}
6969

7070
function neutron_plugin_configure_service() {

0 commit comments

Comments
 (0)