Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Ignore any EC2 instances that are not running #11

Merged
merged 1 commit into from

2 participants

@MarkBennett

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

This resolves issue #9.

@MarkBennett MarkBennett Ignore any EC2 instances that are not running
Previously plow was attempting to run on terminated and stopped
instances.
5c7df5c
@mm53bar mm53bar merged commit ef4ccd6 into mm53bar:master
@mm53bar
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. @MarkBennett

    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
View
2  bin/plow
@@ -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.