summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Safranek <jsafrane@redhat.com>2013-05-17 13:39:48 +0200
committerJan Safranek <jsafrane@redhat.com>2013-05-17 13:39:48 +0200
commitdfe910fcb5f4d62b3dab155ef94402f977be617b (patch)
treec77ae4a8fcf74269e40ee26ae0c5b0f0e7015dcc
parentd3a45b5da98a22b6b94c73cd69f25a3ec7f9d8fa (diff)
parentf5cf34f46ca80050927617ab3e3c2368622a96b6 (diff)
downloadopenlmi-providers-dfe910fcb5f4d62b3dab155ef94402f977be617b.tar.gz
openlmi-providers-dfe910fcb5f4d62b3dab155ef94402f977be617b.tar.xz
openlmi-providers-dfe910fcb5f4d62b3dab155ef94402f977be617b.zip
Merge branch 'master' of ssh://git.fedorahosted.org/git/openlmi-providers
-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