summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-10-16 11:47:56 -0400
committerJim Meyering <jim@meyering.net>2006-10-16 11:47:56 -0400
commit61363138299e95e19bf66ade33b470d10e13846e (patch)
treebb2cf157a07dd9d2a93519bb7498c71440918c6c
parenta393fe10280cf8202cb3acfc1b8df606158d7966 (diff)
downloadthird_party-cobbler-61363138299e95e19bf66ade33b470d10e13846e.tar.gz
third_party-cobbler-61363138299e95e19bf66ade33b470d10e13846e.tar.xz
third_party-cobbler-61363138299e95e19bf66ade33b470d10e13846e.zip
Pychecker.
-rw-r--r--cobbler/action_enchant.py2
-rw-r--r--cobbler/action_import.py3
-rw-r--r--cobbler/action_sync.py2
3 files changed, 4 insertions, 3 deletions
diff --git a/cobbler/action_enchant.py b/cobbler/action_enchant.py
index fed102a..5dbe50c 100644
--- a/cobbler/action_enchant.py
+++ b/cobbler/action_enchant.py
@@ -31,7 +31,7 @@ class Enchant:
self.username = "root"
self.sysname = sysname
if sysname is None:
- raise cexception.CobblerException("enchant_failed","no system name specified")
+ raise cexceptions.CobblerException("enchant_failed","no system name specified")
self.profile = ''
self.password = password
diff --git a/cobbler/action_import.py b/cobbler/action_import.py
index 0f9c46c..8c19ccd 100644
--- a/cobbler/action_import.py
+++ b/cobbler/action_import.py
@@ -18,6 +18,7 @@ import cexceptions
import os
import os.path
import traceback
+import sub_process
import api
@@ -75,7 +76,7 @@ class Importer:
cmd = "rsync -az %s /var/www/cobbler/localmirror/%s --progress" % self.mirror_name
sub_process.call(cmd,shell=True)
update_file = os.path.open(os.path.join(self.path,"update.sh"))
- update.file.write("#!/bin/sh")
+ update_file.write("#!/bin/sh")
update_file.write("%s\n" % cmd)
update_file.write("cobbler import --path=%s" % self.path)
update_file.close()
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index d18dc71..45576cb 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -313,7 +313,7 @@ class BootSync:
))
self.apply_template(kickstart_path, meta, dest)
except:
- msg = "err_kickstart2" % (g.kickstart, dest)
+ msg = "err_kickstart2" % (s.kickstart, dest)
raise cexpcetions.CobblerException(msg)
def apply_template(self, kickstart_input, metadata, out_path):