summaryrefslogtreecommitdiffstats
path: root/cobbler/modules/cli_misc.py
diff options
context:
space:
mode:
authorJohn Eckersberg <jeckersb@redhat.com>2008-12-16 15:38:40 -0500
committerJohn Eckersberg <jeckersb@redhat.com>2008-12-16 15:46:04 -0500
commitb7b1d985da4750ef16079b47b120ae97c71b1a8c (patch)
tree0c9a7f7a5170293f28c2cbbd9105504a5855efa5 /cobbler/modules/cli_misc.py
parent9e726178c5b9afe34c97ba3ce79ec1ffba6797c0 (diff)
downloadcobbler-b7b1d985da4750ef16079b47b120ae97c71b1a8c.tar.gz
cobbler-b7b1d985da4750ef16079b47b120ae97c71b1a8c.tar.xz
cobbler-b7b1d985da4750ef16079b47b120ae97c71b1a8c.zip
Fix 'cobbler check', the conditional is backwards and the check will
look like it's succeeding when really there's errors.
Diffstat (limited to 'cobbler/modules/cli_misc.py')
-rw-r--r--cobbler/modules/cli_misc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/modules/cli_misc.py b/cobbler/modules/cli_misc.py
index ca0f3146..94ccc0d1 100644
--- a/cobbler/modules/cli_misc.py
+++ b/cobbler/modules/cli_misc.py
@@ -60,7 +60,7 @@ class CheckFunction(commands.CobblerFunction):
status = self.api.check()
fd = open("/var/log/cobbler/check.log","w+")
self.logprint(fd,"cobbler check log from %s" % time.asctime(),log_only=True)
- if len(status) != 0:
+ if len(status) == 0:
self.logprint(fd,"No setup problems found")
self.logprint(fd,"Manual review and editing of /var/lib/cobbler/settings is recommended to tailor cobbler to your particular configuration.")