Remove long-ago deprecated show_categories

The API catalog endpoint `show_categories` was deprecated back
in Liberty cycle. It was recently removed from murano in
If1bea7448c0d4aa5fdf37c8400323589d73fdb21

This commit removes the muranoclient usage of this now-removed
endpoint, which is currently used by muranodashboard, causing
bugs. There is a commit for muranodashboard to address this
problem: I715b1c9ccfdd044980596cc6d966062e0386884c

After muranodashboard stops referencing the deprecated
endpoint in favor of the current one, all references
to the deprecated endpoint will have been removed.

Related change: If1bea7448c0d4aa5fdf37c8400323589d73fdb21

Change-Id: I2024fc1e5705f581579ecabaec30f66687a272d7
Depends-On: I715b1c9ccfdd044980596cc6d966062e0386884c
Partial-Bug: #1701067
This commit is contained in:
Felipe Monteiro 2017-06-28 20:39:56 +01:00
parent 08411aa8d2
commit 7e2a6445a6
1 changed files with 0 additions and 16 deletions

View File

@ -21,7 +21,6 @@ from muranoclient.common import base
from muranoclient.common import exceptions
from muranoclient.common import utils
DEFAULT_PAGE_SIZE = 20
@ -33,25 +32,10 @@ class Package(base.Resource):
return self.manager.data(self, **kwargs)
class Category(base.Resource):
def __init__(self, manager, info, loaded=False):
self.value = info
def __unicode__(self):
return self.value
def __repr__(self):
return self.value
class PackageManager(base.Manager):
resource_class = Package
_tracked_packages = set()
def categories(self):
return self._list('/v1/catalog/packages/categories',
response_key='categories', obj_class=Category)
def create(self, data, files):
for pkg_file in files.values():
utils.Package.from_file(pkg_file)