Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ignore any EC2 instances that are not running #11

Merged
merged 1 commit into from

2 participants

Mark Michael McClenaghan
Mark

Previously plow was attempting to run on terminated and stopped
instances.

This resolves issue #9.

Mark MarkBennett Ignore any EC2 instances that are not running
Previously plow was attempting to run on terminated and stopped
instances.
5c7df5c
Michael McClenaghan mm53bar merged commit ef4ccd6 into from
Michael McClenaghan
Owner

Nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 9, 2013
  1. Mark

    Ignore any EC2 instances that are not running

    MarkBennett authored
    Previously plow was attempting to run on terminated and stopped
    instances.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  bin/plow
2  bin/plow
View
@@ -85,7 +85,7 @@ else
INSTANCE_NAMES=($(echo "${DESCRIBE_TAG}" | grep TAG | awk {'print $3'}))
for instance in ${INSTANCE_NAMES[@]}; do
- DESCRIBE_INSTANCE=$(ec2-describe-instances $instance)
+ DESCRIBE_INSTANCE=$(ec2-describe-instances --filter "instance-state-name=running" $instance)
SERVERS[${#SERVERS[@]}]=$(echo ${DESCRIBE_INSTANCE} | sed -E 's/RESERVATION.*ami-.{9}//' | sed -E 's/\ .*//')
done
fi
Something went wrong with that request. Please try again.