postgresql_publication: fix logic (#63737)

pull/63762/head
Andrey Klychkov 5 years ago committed by John R Barker
parent 145b79ef0e
commit 891489a27e

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