Fixed bug #193 where parameter name was set incorrectly

pull/18777/head
Richard Glew 10 years ago committed by Matt Clay
parent d82bfcb75f
commit dac24deeb4

@ -426,7 +426,7 @@ def replace(connection, module):
batch_size = module.params.get('replace_batch_size') batch_size = module.params.get('replace_batch_size')
wait_timeout = module.params.get('wait_timeout') wait_timeout = module.params.get('wait_timeout')
group_name = module.params.get('group_name') group_name = module.params.get('name')
max_size = module.params.get('max_size') max_size = module.params.get('max_size')
min_size = module.params.get('min_size') min_size = module.params.get('min_size')
desired_capacity = module.params.get('desired_capacity') desired_capacity = module.params.get('desired_capacity')
@ -444,7 +444,7 @@ def replace(connection, module):
time.sleep(10) time.sleep(10)
if instance_wait <= time.time(): if instance_wait <= time.time():
# waiting took too long # waiting took too long
module.fail_json(msg = "Waited too for instances to appear. %s" % time.asctime()) module.fail_json(msg = "Waited too long for instances to appear. %s" % time.asctime())
# determine if we need to continue # determine if we need to continue
replaceable = 0 replaceable = 0
if replace_instances: if replace_instances:
@ -470,7 +470,7 @@ def replace(connection, module):
props = get_properties(as_group) props = get_properties(as_group)
if wait_timeout <= time.time(): if wait_timeout <= time.time():
# waiting took too long # waiting took too long
module.fail_json(msg = "Waited too for instances to appear. %s" % time.asctime()) module.fail_json(msg = "Waited too long for instances to appear. %s" % time.asctime())
instances = props['instances'] instances = props['instances']
if replace_instances: if replace_instances:
instances = replace_instances instances = replace_instances
@ -490,7 +490,7 @@ def replace(connection, module):
def replace_batch(connection, module, replace_instances): def replace_batch(connection, module, replace_instances):
group_name = module.params.get('group_name') group_name = module.params.get('name')
wait_timeout = int(module.params.get('wait_timeout')) wait_timeout = int(module.params.get('wait_timeout'))
lc_check = module.params.get('lc_check') lc_check = module.params.get('lc_check')

Loading…
Cancel
Save