Skip to content

Commit aeb2cc0

Browse files
wait for machine creation
1 parent de6530f commit aeb2cc0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tool/ovh/create.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@ openstack server create "$MACHINE_NAME" \
55
--flavor "$MACHINE_TYPE" \
66
--image "$IMAGE" \
77
--network Ext-Net
8+
9+
for _ in `seq 60`; do
10+
STATUS=$(openstack server show "$MACHINE_NAME" |& grep '\bstatus' | awk '{print $4}')
11+
if [[ $STATUS == "ACTIVE" ]]; then break; fi
12+
done

0 commit comments

Comments
 (0)