a
This commit is contained in:
parent
59d34fd7f8
commit
8ca850a6fe
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class CreateImageSchema(BaseSchema):
|
|||
image_stores = list(client.get_prefix("/v1/image_store/"))
|
||||
|
||||
image_store = next(filter(lambda s: json.loads(s.value)["name"] == self.image_store.value,
|
||||
image_stores))
|
||||
image_stores), None)
|
||||
if not image_store:
|
||||
self.add_error(f"Store '{self.image_store.value}' does not exists")
|
||||
|
||||
|
|
Loading…
Reference in a new issue