Merge "[trivial] Fix argument descriptions"

This commit is contained in:
Jenkins 2017-07-12 02:47:39 +00:00 committed by Gerrit Code Review
commit 39c8779716
4 changed files with 4 additions and 1 deletions

View File

@ -1204,7 +1204,7 @@ class NodeVIFController(rest.RestController):
def post(self, vif): def post(self, vif):
"""Attach a VIF to this node """Attach a VIF to this node
:param vif_info: a dictionary of information about a VIF. :param vif: a dictionary of information about a VIF.
It must have an 'id' key, whose value is a unique identifier It must have an 'id' key, whose value is a unique identifier
for that VIF. for that VIF.
""" """

View File

@ -50,6 +50,7 @@ class Chassis(base.IronicObject, object_base.VersionedObjectDictCompat):
def get(cls, context, chassis_id): def get(cls, context, chassis_id):
"""Find a chassis based on its id or uuid and return a Chassis object. """Find a chassis based on its id or uuid and return a Chassis object.
:param context: Security context
:param chassis_id: the id *or* uuid of a chassis. :param chassis_id: the id *or* uuid of a chassis.
:returns: a :class:`Chassis` object. :returns: a :class:`Chassis` object.
""" """

View File

@ -162,6 +162,7 @@ class Node(base.IronicObject, object_base.VersionedObjectDictCompat):
def get(cls, context, node_id): def get(cls, context, node_id):
"""Find a node based on its id or uuid and return a Node object. """Find a node based on its id or uuid and return a Node object.
:param context: Security context
:param node_id: the id *or* uuid of a node. :param node_id: the id *or* uuid of a node.
:returns: a :class:`Node` object. :returns: a :class:`Node` object.
""" """

View File

@ -66,6 +66,7 @@ class Port(base.IronicObject, object_base.VersionedObjectDictCompat):
Find a port based on its id or uuid or MAC address and return a Port Find a port based on its id or uuid or MAC address and return a Port
object. object.
:param context: Security context
:param port_id: the id *or* uuid *or* MAC address of a port. :param port_id: the id *or* uuid *or* MAC address of a port.
:returns: a :class:`Port` object. :returns: a :class:`Port` object.
:raises: InvalidIdentity :raises: InvalidIdentity