diff --git a/os_builders/roles/nubes_bootcontext/files/update_cloud_users.sh b/os_builders/roles/nubes_bootcontext/files/update_cloud_users.sh index fa6f143..fbf0112 100644 --- a/os_builders/roles/nubes_bootcontext/files/update_cloud_users.sh +++ b/os_builders/roles/nubes_bootcontext/files/update_cloud_users.sh @@ -22,6 +22,12 @@ fi echo $OPENSTACK_URL +FEDID_RESPONSE_CODE=$(curl -s -o /dev/null -w "%{http_code}" http://$OPENSTACK_URL:9999/cgi-bin/get_username.sh?"$INSTANCEID") +if [[ $FEDID_RESPONSE_CODE != 200 ]]; then + echo "$FEDID_RESPONSE_CODE expected 200" + exit +fi + FEDIDS=$(curl -s http://$OPENSTACK_URL:9999/cgi-bin/get_username_list.sh?"$INSTANCEID") FEDID=$(curl -s http://$OPENSTACK_URL:9999/cgi-bin/get_username.sh?"$INSTANCEID")