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

pull/64895/head
Andrey Klychkov 6 years ago committed by Abhijeet Kasurde
parent 96fc1a1b80
commit f45fdc7c9b

@ -699,7 +699,7 @@ def main():
check_mode=module.check_mode) check_mode=module.check_mode)
if owner and subscription.attrs['owner'] != owner: 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': elif state == 'absent':
changed = subscription.drop(cascade, check_mode=module.check_mode) changed = subscription.drop(cascade, check_mode=module.check_mode)

Loading…
Cancel
Save