summaryrefslogtreecommitdiffstats
path: root/openlmi-cimmof
diff options
context:
space:
mode:
Diffstat (limited to 'openlmi-cimmof')
-rwxr-xr-xopenlmi-cimmof2
1 files changed, 2 insertions, 0 deletions
diff --git a/openlmi-cimmof b/openlmi-cimmof
index cbec8d4..4f4ccaa 100755
--- a/openlmi-cimmof
+++ b/openlmi-cimmof
@@ -79,6 +79,8 @@ def get_objects_from_mofs(cimmof, namespace, *mofs):
process = subprocess.Popen(cmd, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=sys.stderr)
(out, _) = process.communicate(mof.read())
+ if len(out.strip()) == 0:
+ die("%s returned empty string, is Pegasus running?" % cimmof)
parsed_dom = dom.parseString(xml_cleanup(out))
# we cannot use pywbem.parse_cim because it does not support
# DECLARATION element, but we can parse individual values