Bump hacking

hackihg 3.0.x is too old.

Change-Id: I9d0d19bc6ecf4cb934cce77ce25e89882202dbd6
This commit is contained in:
Takashi Kajinami
2024-01-27 23:18:40 +09:00
parent 5f2835fcf0
commit 7ddca13fcb
8 changed files with 12 additions and 10 deletions
+2 -2
View File
@@ -514,7 +514,7 @@ class Controller(object):
:returns: None
"""
image = self._get_image_with_locations_or_fail(image_id)
current_urls = [l['url'] for l in image.locations]
current_urls = [loc['url'] for loc in image.locations]
missing_locs = url_set.difference(set(current_urls))
if missing_locs:
@@ -541,7 +541,7 @@ class Controller(object):
:returns: The updated image
"""
image = self._get_image_with_locations_or_fail(image_id)
url_map = dict([(l['url'], l) for l in image.locations])
url_map = dict([(loc['url'], loc) for loc in image.locations])
if url not in url_map:
raise exc.HTTPNotFound('Unknown URL: %s, the URL must be one of'
' existing locations of current image' %