Skip to content

Commit

Permalink
Fix get_image_id
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jun 11, 2021
1 parent cfd9071 commit eb1703d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IM/connectors/OpenStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,9 +1067,9 @@ def get_vo_name(self, auth_data):
def get_image_id(path):
url_path = urlparse(path)[2][1:]
if url_path.startswith("image"):
return url_path[7:]
return url_path[6:]
elif not url_path.startswith("volume"):
return url_path[1:]
return url_path
return None

@staticmethod
Expand Down

0 comments on commit eb1703d

Please sign in to comment.