From fa4c7ab4d06a0ceb094d2d715d1755db3fe6bd84 Mon Sep 17 00:00:00 2001 From: fengchaoyang Date: Wed, 7 Dec 2016 15:03:23 +0800 Subject: [PATCH] Delete the useless code These lines of code are not used anywhere, and we already have a command "gnocchi resource-type list". Change-Id: Ia14f4da3bb6d2bdf19b8cb0efc2df9c7adbe68a8 --- gnocchiclient/v1/resource.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gnocchiclient/v1/resource.py b/gnocchiclient/v1/resource.py index f886d79..670cd53 100644 --- a/gnocchiclient/v1/resource.py +++ b/gnocchiclient/v1/resource.py @@ -167,7 +167,3 @@ class ResourceManager(base.Manager): return self._post( url, headers={'Content-Type': "application/json"}, data=jsonutils.dumps(query)).json() - - def list_types(self): - """List the resource types supported by gnocchi""" - return self._get(self.url).json()