Update library/ec2
updated indentation and redundant comment.
This commit is contained in:
parent
b6cbd8d268
commit
18001e0c9c
1 changed files with 2 additions and 3 deletions
3
ec2
3
ec2
|
@ -155,8 +155,7 @@ 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,
|
||||||
|
|
Loading…
Reference in a new issue