[omd-commits] OMD Git: omd: FIX: Providing correct exit codes when running "omd status"

git version control git at mathias-kettner.de
Tue Apr 22 11:54:38 CEST 2014


Module:   omd
Branch:   master
Commit:   3a696ef02e899977eff660651b3f83797a65e598
URL:      http://omdistro.org/projects/omd/repository/revisions/3a696ef02e899977eff660651b3f83797a65e598

Author:   Lars Michelsen <lm at mathias-kettner.de>
Date:     Tue Apr 22 11:54:34 2014 +0200
Commiter: Lars Michelsen <lm at mathias-kettner.de>
Date:     Tue Apr 22 11:54:34 2014 +0200

FIX: Providing correct exit codes when running "omd status"

---

 Changelog        |    1 +
 packages/omd/omd |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/Changelog b/Changelog
index 431fae8..498cf32 100644
--- a/Changelog
+++ b/Changelog
@@ -14,6 +14,7 @@ This file documents the revision history for the Open Monitoring Distribution
             - Added --apache-reload flag to omd create/rm for executing a
               reload of the system apache instead of a restart
             - Added nagios/icinga reload init hooks
+            - FIX: Providing correct exit codes when running "omd status"
           - Check_MK/MK Livestatus: new version 1.2.4
           - Thruk: Update to 1.82
           - Dokuwiki: Fixed integration with multisite cookie authentication
diff --git a/packages/omd/omd b/packages/omd/omd
index a587c2f..a1f90a5 100644
--- a/packages/omd/omd
+++ b/packages/omd/omd
@@ -2863,7 +2863,7 @@ def main_init_action(command, args, options={}):
 		sys.stdout.write("%sDoing '%s' on site %s:%s\n" % (tty_bold, command, site, tty_normal))
 	    sys.stdout.flush()
             exit_status = max(exit_status, os.system("%s %s %s %s %s" % 
-			(sys.argv[0], command, "bare" in options and "--bare" or "", site, " ".join(args))))
+			(sys.argv[0], command, "bare" in options and "--bare" or "", site, " ".join(args))) >> 8)
 	    if not bare:
 		sys.stdout.write("\n")
     else:



More information about the omd-commits mailing list