~dooferlad/juju-ci-tools/juju-ci-tools-addressable-containers

« back to all changes in this revision

Viewing changes to ec2-get-name

  • Committer: Curtis Hovey
  • Date: 2014-02-25 22:13:37 UTC
  • mfrom: (250.1.4 trunk)
  • Revision ID: curtis@canonical.com-20140225221337-e4gepax57tduqlpd
Merge tip.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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