attached is a second patch i've written for cobbler that'll allow one to
run "cobbler check". looks like it was a type in action_check.py, did
not dig to deep on this one, but it works now.
-pete
--
Pete Wright
Systems Engineer Demonware
pete(a)demonware.net
office: 310.255.2000 ext 3704
mobile: 604.802.5059
From 8243776ffb636e38ca3b77efe3bc592c15c60ca4 Mon Sep 17 00:00:00 2001
From: Pete Wright <pete(a)clyde.demonware.net>
Date: Tue, 30 Jun 2009 22:46:45 +0100
Subject: [PATCH] Typo for debian in check_service()
---
cobbler/action_check.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index 6d7145f..0c0581b 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -108,7 +108,7 @@ class BootCheck:
if os.path.exists("/etc/init.d/%s" % which):
rc = sub_process.call("/etc/init.d/%s status /dev/null 2>/dev/null"
% which, shell=True, close_fds=True)
if rc != 0:
- status.append(_("service %s is not running%s") % which,notes)
+ status.append(_("service %s is not running%s") % (which,notes))
return False
else:
status.append(_("Unknown distribution type, cannot check for running
service %s" % which))
--
1.5.4.3