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:
parent
7a1066fb79
commit
5f3f52e7db
@ -31,7 +31,7 @@ class CellsManager(base.Manager):
|
|||||||
"""
|
"""
|
||||||
Get a cell.
|
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`
|
:rtype: :class:`Cell`
|
||||||
"""
|
"""
|
||||||
return self._get("/os-cells/%s" % cell_name, "cell")
|
return self._get("/os-cells/%s" % cell_name, "cell")
|
||||||
@ -40,7 +40,7 @@ class CellsManager(base.Manager):
|
|||||||
"""
|
"""
|
||||||
Get capacities for a cell.
|
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`
|
:rtype: :class:`Cell`
|
||||||
"""
|
"""
|
||||||
path = ["%s/capacities" % cell_name, "capacities"][cell_name is None]
|
path = ["%s/capacities" % cell_name, "capacities"][cell_name is None]
|
||||||
|
@ -51,8 +51,6 @@ class Flavor(base.Resource):
|
|||||||
def get_keys(self):
|
def get_keys(self):
|
||||||
"""
|
"""
|
||||||
Get extra specs from a flavor.
|
Get extra specs from a flavor.
|
||||||
|
|
||||||
:param flavor: The :class:`Flavor` to get extra specs from
|
|
||||||
"""
|
"""
|
||||||
_resp, body = self.manager.api.client.get(
|
_resp, body = self.manager.api.client.get(
|
||||||
"/flavors/%s/os-extra_specs" % base.getid(self))
|
"/flavors/%s/os-extra_specs" % base.getid(self))
|
||||||
@ -62,7 +60,6 @@ class Flavor(base.Resource):
|
|||||||
"""
|
"""
|
||||||
Set extra specs on a flavor.
|
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
|
:param metadata: A dict of key/value pairs to be set
|
||||||
"""
|
"""
|
||||||
utils.validate_flavor_metadata_keys(metadata.keys())
|
utils.validate_flavor_metadata_keys(metadata.keys())
|
||||||
@ -76,7 +73,6 @@ class Flavor(base.Resource):
|
|||||||
"""
|
"""
|
||||||
Unset extra specs on a flavor.
|
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
|
:param keys: A list of keys to be unset
|
||||||
"""
|
"""
|
||||||
for k in keys:
|
for k in keys:
|
||||||
|
@ -58,7 +58,7 @@ class FpingManager(base.ManagerWithFind):
|
|||||||
"""
|
"""
|
||||||
Fping a specific server.
|
Fping a specific server.
|
||||||
|
|
||||||
:param network: ID of the server to fping.
|
:param server: ID of the server to fping.
|
||||||
:rtype: :class:`Fping`
|
:rtype: :class:`Fping`
|
||||||
"""
|
"""
|
||||||
return self._get("/os-fping/%s" % base.getid(server), "server")
|
return self._get("/os-fping/%s" % base.getid(server), "server")
|
||||||
|
Loading…
Reference in New Issue
Block a user