From 5f3f52e7db734d6789e98c099b5040da6ed03ef7 Mon Sep 17 00:00:00 2001 From: Pavel Kholkin Date: Fri, 27 Feb 2015 16:33:41 +0300 Subject: [PATCH] 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 --- novaclient/v2/contrib/cells.py | 4 ++-- novaclient/v2/flavors.py | 4 ---- novaclient/v2/fping.py | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/novaclient/v2/contrib/cells.py b/novaclient/v2/contrib/cells.py index bfc6893d7..7099a5a00 100644 --- a/novaclient/v2/contrib/cells.py +++ b/novaclient/v2/contrib/cells.py @@ -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] diff --git a/novaclient/v2/flavors.py b/novaclient/v2/flavors.py index 0545ad6df..54b0f4974 100644 --- a/novaclient/v2/flavors.py +++ b/novaclient/v2/flavors.py @@ -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: diff --git a/novaclient/v2/fping.py b/novaclient/v2/fping.py index ac958d4c6..5e8b74bb9 100644 --- a/novaclient/v2/fping.py +++ b/novaclient/v2/fping.py @@ -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")