diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-11-26 13:43:04 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-11-26 13:43:04 -0500 |
commit | 777e7de2b04e4320db4932727a108fed52283647 (patch) | |
tree | 2629cfac88d695d4da428756ddc3031a266ab6cb /scripts | |
parent | c8d140d6a543f1598fc0099b460f8f492af2b36e (diff) | |
download | cobbler-777e7de2b04e4320db4932727a108fed52283647.tar.gz cobbler-777e7de2b04e4320db4932727a108fed52283647.tar.xz cobbler-777e7de2b04e4320db4932727a108fed52283647.zip |
Error code changes, more tests for yum code.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/services.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/services.py b/scripts/services.py index 4b77b2da..5d5c16f3 100755 --- a/scripts/services.py +++ b/scripts/services.py @@ -91,11 +91,14 @@ def handler(req): if content.find("# *** ERROR ***") != -1: req.write(content) + apache.log_error("possible cheetah template error") return apache.HTTP_ERROR - elif content.find("# profile not found") != -1 or content.find("# system not found") != -1: + elif content.find("# profile not found") != -1 or content.find("# system not found") != -1 or content.find("# object not found") != -1: req.content_type = "text/html;charset=utf-8" + req.write(" ") + apache.log_error("content not found") return apache.HTTP_NOT_FOUND else: req.write(content) - return apache.HTTP_OK + return apache.OK |