postgresql_publication: fix logic (#63737)
This commit is contained in:
parent
145b79ef0e
commit
891489a27e
1 changed files with 1 additions and 1 deletions
|
@ -638,7 +638,7 @@ def main():
|
|||
|
||||
# Get final publication info:
|
||||
pub_fin_info = {}
|
||||
if state != 'absent' or (state == 'absent' and module.check_mode):
|
||||
if state == 'present' or (state == 'absent' and module.check_mode):
|
||||
pub_fin_info = publication.get_info()
|
||||
elif state == 'absent' and not module.check_mode:
|
||||
publication.exists = False
|
||||
|
|
Loading…
Reference in a new issue