diff options
author | Yuiko Takada <takada-yuiko@mxn.nes.nec.co.jp> | 2014-06-06 07:41:56 +0000 |
---|---|---|
committer | Yuiko Takada <takada-yuiko@mxn.nes.nec.co.jp> | 2014-06-06 08:05:46 +0000 |
commit | be70a1f961663f39a8b20841c5f0244dac9762d5 (patch) | |
tree | f353901587b2afa15df865ea4ad10cbe64b4e8a2 | |
parent | 63c10301245b5b07fe3224e1dc537bc07c94aa9c (diff) | |
download | ironic-be70a1f961663f39a8b20841c5f0244dac9762d5.tar.gz |
Fix the logging message to identify node by uuid
The logging message of _build_pxe_config method in
ironic/drivers/modules/pxe.py is like below:
Building PXE config for deployment 4.
"4" is a ID of the node, but users don't know ID of the node
even if using CLI or API.
Users can know only uuid of the node.
So that, uuid of the node should be written in the logging message.
This patch makes identify node by uuid not by id.
Change-Id: Ida220a97d5fc8f6c5adc5b5acf239bbee14ff847
Closes-bug: #1327085
-rw-r--r-- | ironic/drivers/modules/pxe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic/drivers/modules/pxe.py b/ironic/drivers/modules/pxe.py index 1bc38ca2f..96cbb3dc9 100644 --- a/ironic/drivers/modules/pxe.py +++ b/ironic/drivers/modules/pxe.py @@ -159,7 +159,7 @@ def _build_pxe_config(node, pxe_info, ctx): :param pxe_options: A dict of values to set on the configuarion file :returns: A formated string with the file content. """ - LOG.debug("Building PXE config for deployment %s." % node['id']) + LOG.debug("Building PXE config for deployment %s." % node.uuid) # NOTE: we should strip '/' from the end because this is intended for # hardcoded ramdisk script |