scaleway_lb: simplify function logic (#9189)

* scaleway_lb: simplify function logic

* add changelog frag
pull/9202/head
Alexei Znamensky 2024-11-26 09:27:42 +13:00 committed by GitHub
parent fa7c2df4b8
commit b49830861c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -0,0 +1,2 @@
minor_changes:
- scaleway_lb - minor simplification in the code (https://github.com/ansible-collections/community.general/pull/9189).

View File

@ -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):