Skip to content

Commit

Permalink
fix(XenAPI.py): fix pylint warning
Browse files Browse the repository at this point in the history
Fixes: 500a1f7 ("XenAPI: suppress pytype false positives")

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
  • Loading branch information
edwintorok committed Jul 1, 2024
1 parent c460360 commit 84c2ba6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/examples/python/XenAPI/XenAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ def _logout(self):
try:
if self.last_login_method.startswith("slave_local"):
# Proxied function, pytype can't see it
return _parse_result(self.session.local_logout(self._session)) # pytype: disable=attribute-error
# pytype: disable=attribute-error
return _parse_result(self.session.local_logout(self._session))
# pytype: enable=attribute-error
else:
return _parse_result(self.session.logout(self._session))
finally:
Expand Down

0 comments on commit 84c2ba6

Please sign in to comment.