From 9a03faddc11273bb52e10f174558df7399487f09 Mon Sep 17 00:00:00 2001 From: Radek Novacek Date: Thu, 16 May 2013 11:23:38 +0200 Subject: Set project name and dont require C++ compiler CMake automatically search for C++ compiler, we have to specify that we're C only project. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit From f5cf34f46ca80050927617ab3e3c2368622a96b6 Mon Sep 17 00:00:00 2001 From: Radek Novacek Date: Thu, 16 May 2013 15:12:10 +0200 Subject: Fix crash in openlmi-cimmof when pegasus is not running This just fixes the crash, correct solution would be to support registration without pegasus running. --- openlmi-cimmof | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit