Skip to content

Commit

Permalink
Merge pull request #305 from mseri/ca-2276055
Browse files Browse the repository at this point in the history
CA-227605: fix inconsistent check in the CA-227605 patch
  • Loading branch information
robhoes authored Nov 25, 2016
2 parents 5715144 + afa13bf commit c787ba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/setup-pvs-proxy-rules
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ fi
# The VIF UUID is maintained across the migration.
# Furthermore, a proxied VIF can be in only one PVS site at once.
pvs_prefix="/xapi/pvs-proxy"
started=false
started="false"
for path in $($XSLIST -p "$pvs_prefix"); do
PVS_PROXY_STATE=$($XSREAD "$path/$VIF/state")
if [ $? -eq 0 ] && [ "$PVS_PROXY_STATE" = "started" ]; then
started=true
started="true"
break
fi
done
if [ ! started ]; then
if [ "$started" = "false" ]; then
handle_error "PVS proxy daemon not configured for this proxy - not installing OVS rules."
fi

Expand Down

0 comments on commit c787ba6

Please sign in to comment.