postgresql_subscription: fix the module can return incorect changed value when owner is passed (#64885)
This commit is contained in:
parent
96fc1a1b80
commit
f45fdc7c9b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue