1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

ovirt_vms: Fix the logout condition (#30410)

This commit is contained in:
Ondra Machacek 2017-09-19 08:27:09 +02:00 committed by René Moser
parent 7714dcd04e
commit 0aebdb4aca

View file

@ -1339,7 +1339,7 @@ def main():
except Exception as e:
module.fail_json(msg=str(e), exception=traceback.format_exc())
finally:
connection.close(logout='token' not in module.params['auth'])
connection.close(logout=auth.get('token') is None)
if __name__ == "__main__":