postgresql_subscription: fix the module can return incorect changed value when owner is passed (#64885)

This commit is contained in:
Andrey Klychkov 2019-11-15 14:34:58 +03:00 committed by Abhijeet Kasurde
parent 96fc1a1b80
commit f45fdc7c9b

View file

@ -699,7 +699,7 @@ def main():
check_mode=module.check_mode)
if owner and subscription.attrs['owner'] != owner:
changed = subscription.set_owner(owner, check_mode=module.check_mode)
changed = subscription.set_owner(owner, check_mode=module.check_mode) or changed
elif state == 'absent':
changed = subscription.drop(cascade, check_mode=module.check_mode)