postgresql_publication: fix logic (#63737)

(cherry picked from commit 891489a27e)
pull/64756/head
Andrey Klychkov 5 years ago committed by Matt Clay
parent 8674090b19
commit 040247097c

@ -638,7 +638,7 @@ def main():
# Get final publication info: # Get final publication info:
pub_fin_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() pub_fin_info = publication.get_info()
elif state == 'absent' and not module.check_mode: elif state == 'absent' and not module.check_mode:
publication.exists = False publication.exists = False

Loading…
Cancel
Save