Merge "Fix docstrings in tempest plugin baremetal json client"

This commit is contained in:
Jenkins 2016-10-05 19:35:54 +00:00 committed by Gerrit Code Review
commit 7e55a1d561

View File

@ -272,7 +272,8 @@ class BaremetalClient(base.BaremetalClient):
:param node_uuid: The unique identifier of the node. :param node_uuid: The unique identifier of the node.
:param state: desired state to set :param state: desired state to set
(active/rebuild/deleted/inspect/manage/provide). (active/rebuild/deleted/inspect/manage/provide).
:config_drive: A gzipped, base64-encoded configuration drive string. :param configdrive: A gzipped, base64-encoded
configuration drive string.
""" """
data = {'target': state, 'configdrive': configdrive} data = {'target': state, 'configdrive': configdrive}
return self._put_request('nodes/%s/states/provision' % node_uuid, return self._put_request('nodes/%s/states/provision' % node_uuid,
@ -283,7 +284,7 @@ class BaremetalClient(base.BaremetalClient):
"""Set raid config of the specified node. """Set raid config of the specified node.
:param node_uuid: The unique identifier of the node. :param node_uuid: The unique identifier of the node.
:target_raid_config: desired RAID configuration of the node. :param target_raid_config: desired RAID configuration of the node.
""" """
return self._put_request('nodes/%s/states/raid' % node_uuid, return self._put_request('nodes/%s/states/raid' % node_uuid,
target_raid_config) target_raid_config)