From 844e58aedb2b3c611463bfd32bc40aea50e03f4a Mon Sep 17 00:00:00 2001 From: Javier Cortejoso Date: Mon, 16 Oct 2017 13:33:47 -0500 Subject: [PATCH] Define new_target_group before. Fixes #31378 (#31379) --- lib/ansible/modules/cloud/amazon/elb_target_group.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/cloud/amazon/elb_target_group.py b/lib/ansible/modules/cloud/amazon/elb_target_group.py index ed057fcf4b..be6ee23098 100644 --- a/lib/ansible/modules/cloud/amazon/elb_target_group.py +++ b/lib/ansible/modules/cloud/amazon/elb_target_group.py @@ -339,6 +339,7 @@ def wait_for_status(connection, module, target_group_arn, targets, status): def create_or_update_target_group(connection, module): changed = False + new_target_group = False params = dict() params['Name'] = module.params.get("name") params['Protocol'] = module.params.get("protocol").upper()