summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-09-18 10:44:53 -0400
committerJim Meyering <jim@meyering.net>2006-09-18 10:44:53 -0400
commitcb0b8eb320ece5cd7bd56a1fdc0ef8fb0b678c10 (patch)
tree9535e42c23fca34791a3833b96f9f8a9d8fdbcde /cobbler
parentfebe649f57fd98c3cdad5aa18cdfe767a6953de1 (diff)
downloadthird_party-cobbler-cb0b8eb320ece5cd7bd56a1fdc0ef8fb0b678c10.tar.gz
third_party-cobbler-cb0b8eb320ece5cd7bd56a1fdc0ef8fb0b678c10.tar.xz
third_party-cobbler-cb0b8eb320ece5cd7bd56a1fdc0ef8fb0b678c10.zip
Import constant from correct module.
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 7a96169..054ee9e 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -22,6 +22,7 @@ import utils
import cobbler_msg
import cexceptions
import traceback
+import errno
class BootSync:
"""
@@ -450,7 +451,7 @@ class BootSync:
try:
return shutil.rmtree(path)
except OSError, ioe:
- if not ioe.errno == os.ENOENT: # doesn't exist
+ if not ioe.errno == errno.ENOENT: # doesn't exist
raise cexceptions.CobblerException("no_delete",path)
def mkdir(self,path,mode=0777):