Skip to content

Commit

Permalink
pylint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vg12345 committed Sep 29, 2024
1 parent 184b509 commit d169e4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def reset_port(self, port_name, port_guid):

# Perform reset
ret = self.ufm_client.reset_port(port_name, port_guid)
if not ret or not (ret.status_code == http.HTTPStatus.OK or ret.status_code == http.HTTPStatus.ACCEPTED):
if not ret or ret.status_code not in (http.HTTPStatus.OK, http.HTTPStatus.ACCEPTED):
self.logger.warning("Failed resetting port: %s... status_code= %s", port_name, ret.status_code)
return

Expand Down

0 comments on commit d169e4e

Please sign in to comment.