Skip to content

Commit e20d7fc

Browse files
author
Justin Pettit
committed
xenserver: Consistently use spaces instead of tabs in init script.
1 parent a7ff9bd commit e20d7fc

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

xenserver/etc_init.d_openvswitch

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ else
4949
"$@"
5050
rc=$?
5151
if [ $rc -eq 0 ] ; then
52-
log_success_msg $"$STRING "
52+
log_success_msg $"$STRING "
5353
else
54-
log_failure_msg $"$STRING "
54+
log_failure_msg $"$STRING "
5555
fi
5656
return $rc
5757
}
@@ -178,8 +178,8 @@ function remove_all_dp {
178178

179179
function insert_modules_if_required {
180180
if test -e /sys/module/bridge; then
181-
bridges=`echo /sys/class/net/*/bridge | sed 's,/sys/class/net/,,g;s,/bridge,,g'`
182-
if test "$bridges" != "*"; then
181+
bridges=`echo /sys/class/net/*/bridge | sed 's,/sys/class/net/,,g;s,/bridge,,g'`
182+
if test "$bridges" != "*"; then
183183
log_warning_msg "not removing bridge module because bridges exist ($bridges)"
184184
else
185185
action "removing bridge module" rmmod bridge
@@ -354,13 +354,13 @@ function set_system_ids {
354354
external-ids:system-id="$INSTALLATION_UUID" \
355355
external-ids:xs-system-uuid="$INSTALLATION_UUID"
356356
else
357-
if test -f /etc/openvswitch/install_uuid.conf; then
357+
if test -f /etc/openvswitch/install_uuid.conf; then
358358
. /etc/openvswitch/install_uuid.conf
359-
elif INSTALLATION_UUID=`uuidgen`; then
360-
echo "INSTALLATION_UUID=$INSTALLATION_UUID" > /etc/openvswitch/install_uuid.conf
361-
else
362-
log_failure_msg "missing uuidgen, could not generate system UUID"
363-
return
359+
elif INSTALLATION_UUID=`uuidgen`; then
360+
echo "INSTALLATION_UUID=$INSTALLATION_UUID" > /etc/openvswitch/install_uuid.conf
361+
else
362+
log_failure_msg "missing uuidgen, could not generate system UUID"
363+
return
364364
fi
365365
$vsctl --no-wait --timeout=5 set Open_vSwitch . \
366366
external-ids:system-id="$INSTALLATION_UUID"
@@ -460,7 +460,7 @@ case "$1" in
460460
# configuration up-to-date all the time. HUP ovs-external-ids so it
461461
# re-runs.
462462
hup_monitor_external_ids
463-
;;
463+
;;
464464
strace-vswitchd)
465465
shift
466466
strace -p $(cat "$VSWITCHD_PIDFILE") "$@"

0 commit comments

Comments
 (0)