scaleway_lb: simplify function logic (#9189)
* scaleway_lb: simplify function logic * add changelog fragpull/9202/head
parent
fa7c2df4b8
commit
b49830861c
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- scaleway_lb - minor simplification in the code (https://github.com/ansible-collections/community.general/pull/9189).
|
|
@ -228,8 +228,8 @@ def lb_attributes_should_be_changed(target_lb, wished_lb):
|
||||||
|
|
||||||
if diff:
|
if diff:
|
||||||
return {attr: wished_lb[attr] for attr in MUTABLE_ATTRIBUTES}
|
return {attr: wished_lb[attr] for attr in MUTABLE_ATTRIBUTES}
|
||||||
else:
|
|
||||||
return diff
|
return {}
|
||||||
|
|
||||||
|
|
||||||
def present_strategy(api, wished_lb):
|
def present_strategy(api, wished_lb):
|
||||||
|
|
Loading…
Reference in New Issue