summaryrefslogtreecommitdiff
path: root/targetcli/ui_node.py
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2012-01-10 16:44:09 -0800
committerJerome Martin <tramjoe.merin@gmail.com>2013-10-02 15:59:53 +0200
commit0f7e52ec38b81876a2efa5d87524488d6a021179 (patch)
treee6598c3a454608acf194f5779441fc5250db2953 /targetcli/ui_node.py
parent221eaca40ff55b096c5e5459159946ada020e1a1 (diff)
downloadtargetcli-0f7e52ec38b81876a2efa5d87524488d6a021179.tar.gz
Print error message from RTSLibErrors
log.error() expects a string. Signed-off-by: Andy Grover <agrover@redhat.com>
Diffstat (limited to 'targetcli/ui_node.py')
-rw-r--r--targetcli/ui_node.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/targetcli/ui_node.py b/targetcli/ui_node.py
index 52079c1..4263e5a 100644
--- a/targetcli/ui_node.py
+++ b/targetcli/ui_node.py
@@ -100,7 +100,7 @@ class UINode(ConfigNode):
result = ConfigNode.execute_command(self, command,
pparams, kparams)
except RTSLibError, msg:
- self.shell.log.error(msg)
+ self.shell.log.error(msg.message)
else:
self.shell.log.debug("Command %s succeeded." % command)
return result