Skip to content

Commit

Permalink
Resolve Comment
Browse files Browse the repository at this point in the history
Signed-off-by: prsurve <[email protected]>
  • Loading branch information
prsurve committed Mar 28, 2024
1 parent 8cc499f commit 83f0988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocs_ci/utility/ibmcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,16 +629,16 @@ def check_node_status(self, node_name, node_status):
Args:
node_name (str): Node name
node_status (str): Status of Node Running or Stopped
Returns:
str: Status of node
bool: True if status matches else False
"""
try:
cmd = f"ibmcloud is instance {node_name} --output json"

out = run_ibmcloud_cmd(cmd)
out = json.loads(out)
# return out["status"]
if out["status"] == node_status:
return True
else:
Expand Down

0 comments on commit 83f0988

Please sign in to comment.