diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2009-02-18 11:59:42 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2009-02-18 11:59:42 -0500 |
commit | b4402efefb5d27f72b8f785e7ecd53eb1bb86679 (patch) | |
tree | 81ad82597b6047043969648b0d2ee0f856fa3303 /cobbler | |
parent | 132926e04490fb1bbce406b042a2574b0c3ed000 (diff) | |
download | cobbler-b4402efefb5d27f72b8f785e7ecd53eb1bb86679.tar.gz cobbler-b4402efefb5d27f72b8f785e7ecd53eb1bb86679.tar.xz cobbler-b4402efefb5d27f72b8f785e7ecd53eb1bb86679.zip |
Remove debug print statements
Diffstat (limited to 'cobbler')
-rw-r--r-- | cobbler/action_check.py | 1 | ||||
-rw-r--r-- | cobbler/services.py | 11 | ||||
-rw-r--r-- | cobbler/utils.py | 1 |
3 files changed, 0 insertions, 13 deletions
diff --git a/cobbler/action_check.py b/cobbler/action_check.py index 8d86e38b..9edd89cd 100644 --- a/cobbler/action_check.py +++ b/cobbler/action_check.py @@ -148,7 +148,6 @@ class BootCheck: if line.find("off") != -1: status.append(_("Must enable selinux boolean to enable Apache and web services components, run: setsebool -P httpd_can_network_connect true")) data3 = sub_process.Popen("/usr/sbin/semanage fcontext -l | grep public_content_t",shell=True,stdout=sub_process.PIPE).communicate()[0] - #print "DEBUG: data3=\n%s\n" % data3 rule1 = False rule2 = False diff --git a/cobbler/services.py b/cobbler/services.py index b4347927..7e1e313d 100644 --- a/cobbler/services.py +++ b/cobbler/services.py @@ -375,35 +375,27 @@ def test_services_access(): api.add_system(sys) # save the system to ensure it's set True url = "http://127.0.0.1/cblr/svc/op/nopxe/system/system0" - print "DEBUG: reading: %s" % url data = urlgrabber.urlread(url) - print "NOPXE DATA: %s" % data time.sleep(2) sys = api.find_system("system0") - print "NE STATUS: %s" % sys.netboot_enabled assert str(sys.netboot_enabled).lower() not in [ "1", "true", "yes" ] # now let's test the listing URLs since we document # them even know I don't know of anything relying on them. - print "A" url = "http://127.0.0.1/cblr/svc/op/list/what/distros" assert urlgrabber.urlread(url).find("distro0") != -1 - print "B" url = "http://127.0.0.1/cblr/svc/op/list/what/profiles" assert urlgrabber.urlread(url).find("profile0") != -1 - print "C" url = "http://127.0.0.1/cblr/svc/op/list/what/systems" assert urlgrabber.urlread(url).find("system0") != -1 - print "D" url = "http://127.0.0.1/cblr/svc/op/list/what/repos" assert urlgrabber.urlread(url).find("repo0") != -1 - print "E" url = "http://127.0.0.1/cblr/svc/op/list/what/images" assert urlgrabber.urlread(url).find("image0") != -1 @@ -422,7 +414,6 @@ def test_services_access(): url = "http://127.0.0.1/cblr/svc/op/puppet/hostname/hostname0" data = urlgrabber.urlread(url) - print "puppet DATA: %s" % data assert data.find("alpha") != -1 assert data.find("beta") != -1 assert data.find("gamma") != -1 @@ -438,13 +429,11 @@ def test_services_access(): url = "http://127.0.0.1/cblr/svc/op/template/profile/profile0/path/_tmp_t1-rendered" data = urlgrabber.urlread(url) - print "T1: %s" % data assert data.find("profile0") != -1 assert data.find("$profile_name") == -1 url = "http://127.0.0.1/cblr/svc/op/template/system/system0/path/_tmp_t2-rendered" data = urlgrabber.urlread(url) - print "T2: %s" % data assert data.find("system0") != -1 assert data.find("$system_name") == -1 diff --git a/cobbler/utils.py b/cobbler/utils.py index 6ddde053..1853360a 100644 --- a/cobbler/utils.py +++ b/cobbler/utils.py @@ -672,7 +672,6 @@ def run_triggers(api,ref,globber,additional=[]): # Python triggers first, before shell modules = api.get_modules_in_category(globber) - print "DEBUG: trigger modules matching %s are %s" % (globber, [m.__name__ for m in modules]) for m in modules: arglist = [] if ref: |