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:
parent
7714dcd04e
commit
0aebdb4aca
1 changed files with 1 additions and 1 deletions
|
@ -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__":
|
||||
|
|
Loading…
Reference in a new issue