Removing flavor detail/index and just sticking with flavor list which is the default

This commit is contained in:
Nirmal Ranganathan
2012-06-13 15:32:11 -05:00
parent 9e860e0c34
commit 9aaf84cc99

View File

@@ -48,26 +48,10 @@ class Flavors(base.ManagerWithFind):
"""
Get a list of all flavors.
:rtype: list of :class:`Flavor`.
"""
return self.detail()
def index(self):
"""
Get a list of all flavors.
:rtype: list of :class:`Flavor`.
"""
return self._list("/flavors", "flavors")
def detail(self):
"""
Get the details of all flavors.
:rtype: list of :class:`Flavor`.
"""
return self._list("/flavors/detail", "flavors")
def get(self, flavor):
"""
Get a specific flavor.