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

« back to all changes in this revision

Viewing changes to ec2-run-instance-get-id

  • Committer: Aaron Bentley
  • Date: 2014-02-21 19:46:13 UTC
  • mfrom: (233.1.20 manual-provider)
  • mto: This revision was merged to the branch mainline in revision 252.
  • Revision ID: aaron.bentley@canonical.com-20140221194613-3dai5kb0d9uwtca8
Support manual provider tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
set -eu
 
3
RUN_OUTPUT=$(euca-run-instances -k id_rsa -t $INSTANCE_TYPE $AMI_IMAGE)
 
4
if [ $? -ne 0 ]; then
 
5
  exit 1
 
6
fi
 
7
echo $RUN_OUTPUT|sed -r 's/.*INSTANCE (i-[^ ]*) .*/\1/'