From 8310c221ec15fe7919d46770f65c28c03b186fea Mon Sep 17 00:00:00 2001 From: Matthew Farrellee Date: Tue, 19 Nov 2013 23:21:35 -0500 Subject: [PATCH] Add unregister_image(id) call Change-Id: Ic2e2a49e7c3f59093d9b68b66948520ed18571a3 Fixes: bug #1237939 --- AUTHORS | 1 + savannaclient/api/images.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index a1bb3f55..03ac7321 100644 --- a/AUTHORS +++ b/AUTHORS @@ -2,6 +2,7 @@ Alexander Ignatov Alexander Kuznetsov Chad Roberts Jeremy Stanley +Matthew Farrellee Nikita Konovalov Nikolay Mahotkin OpenStack Jenkins diff --git a/savannaclient/api/images.py b/savannaclient/api/images.py index 4003300d..1b2291c7 100644 --- a/savannaclient/api/images.py +++ b/savannaclient/api/images.py @@ -34,6 +34,9 @@ class ImageManager(base.ResourceManager): def get(self, id): return self._get('/images/%s' % id, 'image') + def unregister_image(self, image_id): + self._delete('/images/%s' % image_id) + def update_image(self, image_id, user_name, desc): body = {"username": user_name, "description": desc}