Skip to content

Commit

Permalink
Removed unused status on port reset
Browse files Browse the repository at this point in the history
  • Loading branch information
vg12345 committed Sep 30, 2024
1 parent d169e4e commit 0205998
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 ret.status_code not in (http.HTTPStatus.OK, http.HTTPStatus.ACCEPTED):
if not ret or ret.status_code != 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 0205998

Please sign in to comment.