postgresql_publication: fix logic (#63737)

This commit is contained in:
Andrey Klychkov 2019-10-21 17:14:23 +03:00 committed by John R Barker
parent 145b79ef0e
commit 891489a27e

View file

@ -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