From 31c75acff2ed6c9f37a063cb200420221c1a205c Mon Sep 17 00:00:00 2001 From: Felipe Monteiro Date: Fri, 23 Jun 2017 20:04:05 +0100 Subject: [PATCH] Add api-ref url for compute list_baremetal_nodes Change-Id: Ib99a2c5cea106bfee4e23d786c5cb7f583ef8d61 --- .../lib/services/compute/baremetal_nodes_client.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tempest/lib/services/compute/baremetal_nodes_client.py b/tempest/lib/services/compute/baremetal_nodes_client.py index 06dc3696fa..e44c195580 100644 --- a/tempest/lib/services/compute/baremetal_nodes_client.py +++ b/tempest/lib/services/compute/baremetal_nodes_client.py @@ -25,7 +25,12 @@ class BaremetalNodesClient(base_compute_client.BaseComputeClient): """Tests Baremetal API""" def list_baremetal_nodes(self, **params): - """List all baremetal nodes.""" + """List all baremetal nodes. + + For a full list of available parameters, please refer to the official + API reference: + https://developer.openstack.org/api-ref/compute/#list-bare-metal-nodes + """ url = 'os-baremetal-nodes' if params: url += '?%s' % urllib.urlencode(params) @@ -35,7 +40,11 @@ class BaremetalNodesClient(base_compute_client.BaseComputeClient): return rest_client.ResponseBody(resp, body) def show_baremetal_node(self, baremetal_node_id): - """Return the details of a single baremetal node.""" + """Show the details of a single baremetal node. + + For more information, please refer to the official API reference: + https://developer.openstack.org/api-ref/compute/#show-bare-metal-node-details + """ url = 'os-baremetal-nodes/%s' % baremetal_node_id resp, body = self.get(url) body = json.loads(body)