diff options
author | Jing Lu <lvjing5@huawei.com> | 2017-08-25 00:50:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-25 00:50:21 +0000 |
commit | f5a96ffd959b11a122c4beea1fc99c89f755678c (patch) | |
tree | 1c0cad1b94f33a3275c816999653870e6955d6eb /api/database/v2/handlers.py | |
parent | ffecd5b84eecdb74d7534b801c1359251c34b34e (diff) | |
parent | efb4f088f14aee394599bea21973f82f1867c4fe (diff) |
Merge "Add function to upload image from local/url in GUI"
Diffstat (limited to 'api/database/v2/handlers.py')
-rw-r--r-- | api/database/v2/handlers.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/database/v2/handlers.py b/api/database/v2/handlers.py index 1bc32bf0e..e4f1dd668 100644 --- a/api/database/v2/handlers.py +++ b/api/database/v2/handlers.py @@ -87,6 +87,11 @@ class V2ImageHandler(object): raise ValueError return image + def delete_by_uuid(self, uuid): + image = self.get_by_uuid(uuid) + db_session.delete(image) + db_session.commit() + class V2PodHandler(object): |