Skip to content

Commit c787ba6

Browse files
authored
Merge pull request #305 from mseri/ca-2276055
CA-227605: fix inconsistent check in the CA-227605 patch
2 parents 5715144 + afa13bf commit c787ba6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/setup-pvs-proxy-rules

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ fi
5151
# The VIF UUID is maintained across the migration.
5252
# Furthermore, a proxied VIF can be in only one PVS site at once.
5353
pvs_prefix="/xapi/pvs-proxy"
54-
started=false
54+
started="false"
5555
for path in $($XSLIST -p "$pvs_prefix"); do
5656
PVS_PROXY_STATE=$($XSREAD "$path/$VIF/state")
5757
if [ $? -eq 0 ] && [ "$PVS_PROXY_STATE" = "started" ]; then
58-
started=true
58+
started="true"
5959
break
6060
fi
6161
done
62-
if [ ! started ]; then
62+
if [ "$started" = "false" ]; then
6363
handle_error "PVS proxy daemon not configured for this proxy - not installing OVS rules."
6464
fi
6565

0 commit comments

Comments
 (0)