ovirt_vms: Fix the logout condition (#30410)

(cherry picked from commit 0aebdb4aca)
pull/30580/head
Ondra Machacek 8 years ago committed by Toshio Kuratomi
parent 6296b906fb
commit ba9a84f02a

@ -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…
Cancel
Save