summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rwxr-xr-xopenlmi-cimmof2
2 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f25850e..5f4980e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,6 @@
+project(openlmi-providers C)
+
cmake_minimum_required(VERSION 2.6)
# Set flags and definitions
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