summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/join.py
diff options
context:
space:
mode:
authorPavel Zuna <pzuna@redhat.com>2009-04-23 14:51:59 +0200
committerRob Crittenden <rcritten@redhat.com>2009-04-23 10:29:14 -0400
commit7d0bd4b8951ef7894668ad3c63607769e208c9d0 (patch)
tree25cfb046e3f16814d66465c72ce5a0cbe00a00fd /ipalib/plugins/join.py
parent596d410471672eac0e429c53d2f28ff6ea43d867 (diff)
downloadfreeipa.git-7d0bd4b8951ef7894668ad3c63607769e208c9d0.tar.gz
freeipa.git-7d0bd4b8951ef7894668ad3c63607769e208c9d0.tar.xz
freeipa.git-7d0bd4b8951ef7894668ad3c63607769e208c9d0.zip
Rename errors2.py to errors.py. Modify all affected files.
Diffstat (limited to 'ipalib/plugins/join.py')
-rw-r--r--ipalib/plugins/join.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ipalib/plugins/join.py b/ipalib/plugins/join.py
index 1230d5bc..d75043fd 100644
--- a/ipalib/plugins/join.py
+++ b/ipalib/plugins/join.py
@@ -23,7 +23,7 @@ Machine join
from ipalib import api, util
from ipalib import Command, Str, Int
-from ipalib import errors2
+from ipalib import errors
import krbV
import os, subprocess
@@ -74,10 +74,10 @@ class join(Command):
try:
host = api.Command['host_show'](hostname)
- except errors2.NotFound:
+ except errors.NotFound:
pass
else:
- raise errors2.DuplicateEntry
+ raise errors.DuplicateEntry
return api.Command['host_add'](hostname)
@@ -91,7 +91,7 @@ class join(Command):
"""
if not self.env.in_server:
# if os.getegid() != 0:
-# raise errors2.RequiresRoot
+# raise errors.RequiresRoot
result = self.forward(*args, **options)
else:
return self.execute(*args, **options)