From d82bfcb75f27c20ff6ef6664f31a429508918fc5 Mon Sep 17 00:00:00 2001 From: Jorge Bastida Date: Tue, 14 Oct 2014 15:22:26 +0100 Subject: [PATCH] Initialize create_changed and replace_changed --- lib/ansible/modules/cloud/ec2_asg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/ec2_asg.py b/lib/ansible/modules/cloud/ec2_asg.py index 3fc033e6d65..39c9d9c9f41 100755 --- a/lib/ansible/modules/cloud/ec2_asg.py +++ b/lib/ansible/modules/cloud/ec2_asg.py @@ -591,7 +591,7 @@ def main(): module.fail_json(msg="failed to connect to AWS for the given region: %s" % str(region)) except boto.exception.NoAuthHandlerFound, e: module.fail_json(msg=str(e)) - changed = False + changed = create_changed = replace_changed = False if replace_all_instances and replace_instances: module.fail_json(msg="You can't use replace_instances and replace_all_instances in the same task.") if state == 'present':