Fix description of parameters in nova-client functions

Resolved issues in python-novaclient code like
Function 'func_name' does not have a parameter 'param_name'

TrivialFix

Change-Id: I87cfd346ed8d7dd45bc4dc96bc89c576b5145711
This commit is contained in:
Pavel Kholkin 2015-02-27 16:33:41 +03:00
parent 7a1066fb79
commit 5f3f52e7db
3 changed files with 3 additions and 7 deletions

View File

@ -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]

View File

@ -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:

View File

@ -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")