mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2025-03-04 06:37:12 +00:00
fix(tests/unit): do not attempt to call logout in check mode
This commit is contained in:
parent
fb0cee0053
commit
96751ecd1f
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class AnsibleNioModule:
|
|||
return self.client.device_id
|
||||
|
||||
async def matrix_logout(self):
|
||||
if self.client.logged_in:
|
||||
if not self.module.check_mode and self.client.logged_in:
|
||||
request = await self.client.logout()
|
||||
if isinstance(request, LogoutError):
|
||||
result = {"msg": request.message}
|
||||
|
|
Loading…
Add table
Reference in a new issue