summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-05-14 10:35:58 +0200
committerJan Safranek <jsafrane@redhat.com>2013-05-14 10:35:58 +0200
commitc2f23c05cb4116a2127e4ef6a8d7ce6489aea241 (patch)
tree483df215f529a54a93553dbe03211a00eb537a99 /tools
parentf3265d37cea12a5126f9e7ac8266142cd7a05f23 (diff)
downloadopenlmi-providers-c2f23c05cb4116a2127e4ef6a8d7ce6489aea241.tar.gz
openlmi-providers-c2f23c05cb4116a2127e4ef6a8d7ce6489aea241.tar.xz
openlmi-providers-c2f23c05cb4116a2127e4ef6a8d7ce6489aea241.zip
cim2uml now shows detailed message on GetInstance error.
When cim2uml gets an error on GetInstance() call, it now shows better message than "error getting instance", so user knows which instance/class is wrong.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cim2uml.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/cim2uml.py b/tools/cim2uml.py
index 9f3c3fb..4bfee93 100755
--- a/tools/cim2uml.py
+++ b/tools/cim2uml.py
@@ -193,7 +193,12 @@ class CimLoader(object):
self.queue[path] = level
def getFullInstance(self, instance):
- return self.cliconn.GetInstance(instance)
+ try:
+ inst = self.cliconn.GetInstance(instance)
+ except pywbem.CIMError:
+ print >>sys.stderr, 'Error getting instance %s' % (str(instance))
+ raise
+ return inst
def addReferences(self, instance, level):
if self.levels <= level: