mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
scaleway_lb: simplify function logic (#9189)
* scaleway_lb: simplify function logic * add changelog frag
This commit is contained in:
2
changelogs/fragments/9189-scalway-lb-simplify-return.yml
Normal file
2
changelogs/fragments/9189-scalway-lb-simplify-return.yml
Normal file
@@ -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:
|
||||
return {attr: wished_lb[attr] for attr in MUTABLE_ATTRIBUTES}
|
||||
else:
|
||||
return diff
|
||||
|
||||
return {}
|
||||
|
||||
|
||||
def present_strategy(api, wished_lb):
|
||||
|
||||
Reference in New Issue
Block a user