~andrewjbeach/juju-ci-tools/make-local-patcher

233.1.11 by Aaron Bentley
Work around arbitrary-storage-port by using hostname, not ip. More port waits.
1
#!/bin/bash
2
set -eu
3
instance_name=''
4
echo -n Waiting for instance name >&2
5
while [ -z "$instance_name" ]; do
6
  sleep 1
7
  instance_name=$(euca-describe-instances $1|sed '/^INSTANCE/!d'|cut -f 4)
8
  echo -n . >&2
9
done
10
echo >&2
11
echo $instance_name