File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -148,11 +148,20 @@ jobs:
148
148
jq -r .exoSetup | \
149
149
jq -r .status)
150
150
151
- if [ "$status" = "complete" ]; then
151
+ has_pwd=$(
152
+ openstack server show $INSTANCE_NAME -c tags -f json | \
153
+ jq -r '.tags[] | startswith("exoPw")')
154
+
155
+ has_ip=$(
156
+ openstack server show $INSTANCE_NAME -c addresses -f json | \
157
+ jq -r '.addresses.auto_allocated_network[1] != null'
158
+ )
159
+
160
+ if [ "$status" = "complete" && has_pwd $$ $has_ip ]; then
152
161
echo "Status is complete. Exiting loop."
153
162
break
154
163
else
155
- echo "Status is $status. Waiting for completion..."
164
+ echo "Status is ' $status', has_pwd is '$has_pwd', has_ip is '$has_ip' . Waiting for completion..."
156
165
sleep $wait_interval
157
166
total_wait_time=$((total_wait_time + wait_interval))
158
167
fi
You can’t perform that action at this time.
0 commit comments