Skip to content

Commit

Permalink
lightos/lightos.py: create volume may return http.OK or http.CREATED
Browse files Browse the repository at this point in the history
  • Loading branch information
yogev-lb committed Jan 14, 2022
1 parent a324454 commit 4a32ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinder/volume/drivers/lightos/lightos.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def _create_volume(self, volume, src_snapshot_lightos_name):
src_snapshot_lightos_name=src_snapshot_lightos_name)

# when we get here, we definitely tried to create it in the past
if status_code == httpstatus.OK:
if status_code in (httpstatus.OK, httpstatus.CREATED):
lightos_uuid = resp['UUID']
vol_state = self._wait_for_volume_available(
project_name,
Expand Down

0 comments on commit 4a32ddd

Please sign in to comment.