[PR #9189/b4983086 backport][stable-10] scaleway_lb: simplify function logic (#9196)

scaleway_lb: simplify function logic (#9189)

* scaleway_lb: simplify function logic

* add changelog frag

(cherry picked from commit b49830861c)

Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
patchback[bot]
2024-11-26 06:41:02 +01:00
committed by GitHub
parent ecc9afab0b
commit 4152770281
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:
return {attr: wished_lb[attr] for attr in MUTABLE_ATTRIBUTES}
else:
return diff
return {}
def present_strategy(api, wished_lb):