Merge "Fix description of parameters in nova-client functions"

This commit is contained in:
Jenkins 2015-02-28 00:11:17 +00:00 committed by Gerrit Code Review
commit a787261466
3 changed files with 3 additions and 7 deletions
novaclient/v2

@ -31,7 +31,7 @@ class CellsManager(base.Manager):
"""
Get a cell.
:param cell: Name of the :class:`Cell` to get.
:param cell_name: Name of the :class:`Cell` to get.
:rtype: :class:`Cell`
"""
return self._get("/os-cells/%s" % cell_name, "cell")
@ -40,7 +40,7 @@ class CellsManager(base.Manager):
"""
Get capacities for a cell.
:param cell: Name of the :class:`Cell` to get capacities for.
:param cell_name: Name of the :class:`Cell` to get capacities for.
:rtype: :class:`Cell`
"""
path = ["%s/capacities" % cell_name, "capacities"][cell_name is None]

@ -51,8 +51,6 @@ class Flavor(base.Resource):
def get_keys(self):
"""
Get extra specs from a flavor.
:param flavor: The :class:`Flavor` to get extra specs from
"""
_resp, body = self.manager.api.client.get(
"/flavors/%s/os-extra_specs" % base.getid(self))
@ -62,7 +60,6 @@ class Flavor(base.Resource):
"""
Set extra specs on a flavor.
:param flavor: The :class:`Flavor` to set extra spec on
:param metadata: A dict of key/value pairs to be set
"""
utils.validate_flavor_metadata_keys(metadata.keys())
@ -76,7 +73,6 @@ class Flavor(base.Resource):
"""
Unset extra specs on a flavor.
:param flavor: The :class:`Flavor` to unset extra spec on
:param keys: A list of keys to be unset
"""
for k in keys:

@ -58,7 +58,7 @@ class FpingManager(base.ManagerWithFind):
"""
Fping a specific server.
:param network: ID of the server to fping.
:param server: ID of the server to fping.
:rtype: :class:`Fping`
"""
return self._get("/os-fping/%s" % base.getid(server), "server")