mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-01 00:03:10 +00:00
Python3 compatability for elb_application_lb and elb_target_group
This commit is contained in:
committed by
Toshio Kuratomi
parent
9a7e23569e
commit
f52a022022
@@ -416,11 +416,7 @@ def get_elb_attributes(connection, module, elb_arn):
|
||||
module.fail_json(msg=e.message, exception=traceback.format_exc(), **camel_dict_to_snake_dict(e.response))
|
||||
|
||||
# Replace '.' with '_' in attribute key names to make it more Ansibley
|
||||
for k, v in dict(elb_attributes).items():
|
||||
elb_attributes[k.replace('.', '_')] = v
|
||||
del elb_attributes[k]
|
||||
|
||||
return elb_attributes
|
||||
return dict((k.replace('.', '_'), v) for k, v in elb_attributes.items())
|
||||
|
||||
|
||||
def get_listener(connection, module, elb_arn, listener_port):
|
||||
|
||||
@@ -299,11 +299,7 @@ def get_tg_attributes(connection, module, tg_arn):
|
||||
module.fail_json(msg=e.message, exception=traceback.format_exc(), **camel_dict_to_snake_dict(e.response))
|
||||
|
||||
# Replace '.' with '_' in attribute key names to make it more Ansibley
|
||||
for k, v in tg_attributes.items():
|
||||
tg_attributes[k.replace('.', '_')] = v
|
||||
del tg_attributes[k]
|
||||
|
||||
return tg_attributes
|
||||
return dict((k.replace('.', '_'), v) for k, v in tg_attributes.items())
|
||||
|
||||
|
||||
def get_target_group_tags(connection, module, target_group_arn):
|
||||
|
||||
Reference in New Issue
Block a user