Skip to content

Commit

Permalink
kfish: handle 202 code for redfish insert iso
Browse files Browse the repository at this point in the history
  • Loading branch information
karmab committed Mar 6, 2024
1 parent 7d65c26 commit 0aaede0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ailib/kfish/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def set_iso(self, iso_url):
except:
pass
result = self.insert_iso(iso_url)
if result.code not in [200, 204]:
if result.code not in [200, 202, 204]:
print(f"Hit {result.reason} When plugging {iso_url}")
sys.exit(1)
try:
Expand Down

0 comments on commit 0aaede0

Please sign in to comment.