diff --git a/changelogs/fragments/9189-scalway-lb-simplify-return.yml b/changelogs/fragments/9189-scalway-lb-simplify-return.yml new file mode 100644 index 00000000000..39d161f06b0 --- /dev/null +++ b/changelogs/fragments/9189-scalway-lb-simplify-return.yml @@ -0,0 +1,2 @@ +minor_changes: + - scaleway_lb - minor simplification in the code (https://github.com/ansible-collections/community.general/pull/9189). diff --git a/plugins/modules/scaleway_lb.py b/plugins/modules/scaleway_lb.py index 1083b6da9e3..6cc947755db 100644 --- a/plugins/modules/scaleway_lb.py +++ b/plugins/modules/scaleway_lb.py @@ -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):