Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
2832ac9c
Commit
2832ac9c
authored
Feb 07, 2012
by
Giorgos Verigakis
Browse files
Treat deleted images as nonexistent on create
Refs #1986
parent
934852e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-cyclades-app/synnefo/api/util.py
View file @
2832ac9c
...
...
@@ -190,7 +190,7 @@ def get_backend_image(image_id, owner):
backend
=
ImageBackend
(
owner
.
uniq
)
try
:
image
=
backend
.
get_image
(
image_id
)
if
not
image
:
if
not
image
or
image
[
'deleted_at'
]
:
raise
ItemNotFound
(
'Image not found.'
)
return
image
finally
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment