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
This commit is contained in:
Stenio Araujo 2016-09-26 12:00:34 -03:00
parent 659f951d72
commit ecc2406a5e

View File

@ -240,7 +240,7 @@ def _verify_node_info(node_namespace, node_info_dict, info_required):
def node_has_server_profile(func): 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): def inner(*args, **kwargs):
@ -254,7 +254,7 @@ def node_has_server_profile(func):
except oneview_exceptions.OneViewException as oneview_exc: except oneview_exceptions.OneViewException as oneview_exc:
LOG.error( LOG.error(
_LE("Failed to get server profile from OneView appliance for" _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} {"node": task.node.uuid, "message": oneview_exc}
) )
raise exception.OneViewError(error=oneview_exc) raise exception.OneViewError(error=oneview_exc)