1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix scaleway_lb test failures.

This commit is contained in:
Matt Clay 2019-02-11 11:10:08 -08:00
parent 6cba471958
commit d033884465

View file

@ -34,6 +34,11 @@ options:
- Name of the load-balancer
required: true
description:
description:
- Description
required: true
organization_id:
description:
- Organization identifier
@ -204,11 +209,10 @@ def wait_to_complete_state_transition(api, lb, force_wait=False):
def lb_attributes_should_be_changed(target_lb, wished_lb):
diff = {
attr: wished_lb[attr] for attr in MUTABLE_ATTRIBUTES if target_lb[attr] != wished_lb[attr]
}
diff = dict((attr, wished_lb[attr]) for attr in MUTABLE_ATTRIBUTES if target_lb[attr] != wished_lb[attr])
if diff:
return {attr: wished_lb[attr] for attr in MUTABLE_ATTRIBUTES}
return dict((attr, wished_lb[attr]) for attr in MUTABLE_ATTRIBUTES)
else:
return diff