1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Update library/ec2

updated indentation and redundant comment.
This commit is contained in:
Lester Wade 2013-01-26 11:26:51 +00:00 committed by Michael DeHaan
parent e5b64b2f74
commit 2da3a54e29

View file

@ -155,9 +155,8 @@ def main():
else: # otherwise it's Amazon. else: # otherwise it's Amazon.
ec2 = boto.connect_ec2(ec2_access_key, ec2_secret_key) ec2 = boto.connect_ec2(ec2_access_key, ec2_secret_key)
# Note min_count is static in value. Since we aren't interested in addressing an autoscaling use-case. # Both min_count and max_count equal count parameter. This means the launch request is explicit (we want count, or fail) in how many instances we want.
# Autoscaling means more instances are launched on a triggered event, so this is post-play/run stuff.
try: try:
res = ec2.run_instances(image, key_name = key_name, res = ec2.run_instances(image, key_name = key_name,
min_count = count, max_count = count, min_count = count, max_count = count,