From ecc2406a5e17ab28548694f50772f91e5e031e70 Mon Sep 17 00:00:00 2001 From: Stenio Araujo Date: Mon, 26 Sep 2016 12:00:34 -0300 Subject: [PATCH] Fixing Typo The docstring to common.node_has_server_profile within the OneView's driver has the verb 'has' misspelled. Also the LOG.error message did not have a space. This commit intends to improve the readability of the messages. Change-Id: Ibc543cb9c128237eeb1bac04e02074fc67374ba9 --- ironic/drivers/modules/oneview/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ironic/drivers/modules/oneview/common.py b/ironic/drivers/modules/oneview/common.py index 1c6754696f..2e09c3f03a 100644 --- a/ironic/drivers/modules/oneview/common.py +++ b/ironic/drivers/modules/oneview/common.py @@ -240,7 +240,7 @@ def _verify_node_info(node_namespace, node_info_dict, info_required): def node_has_server_profile(func): - """Checks if the node's Server Hardware as a Server Profile associated. + """Checks if the node's Server Hardware has a Server Profile associated. """ def inner(*args, **kwargs): @@ -254,7 +254,7 @@ def node_has_server_profile(func): except oneview_exceptions.OneViewException as oneview_exc: LOG.error( _LE("Failed to get server profile from OneView appliance for" - "node %(node)s. Error: %(message)s"), + " node %(node)s. Error: %(message)s"), {"node": task.node.uuid, "message": oneview_exc} ) raise exception.OneViewError(error=oneview_exc)