summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-nis-manage
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-05-29 10:37:18 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-16 19:48:19 +0200
commit49fcd42f8fd71b894a0953a37f10a6c326e16048 (patch)
tree0c1324c5a3183ce20e92af183ffefde92a77147a /install/tools/ipa-nis-manage
parent926f8647d2a676c1dd2e446633eb76cdf1a7bf0c (diff)
downloadfreeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.tar.gz
freeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.tar.xz
freeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.zip
ipaplatform: Change service code in freeipa to use ipaplatform services
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'install/tools/ipa-nis-manage')
-rwxr-xr-xinstall/tools/ipa-nis-manage5
1 files changed, 3 insertions, 2 deletions
diff --git a/install/tools/ipa-nis-manage b/install/tools/ipa-nis-manage
index 229b6b02d..b37cd6594 100755
--- a/install/tools/ipa-nis-manage
+++ b/install/tools/ipa-nis-manage
@@ -31,6 +31,7 @@ try:
from ipalib import api, errors
from ipapython.ipa_log_manager import *
from ipapython.dn import DN
+ from ipaplatform import services
except ImportError:
print >> sys.stderr, """\
There was a problem importing one of the required Python modules. The
@@ -142,13 +143,13 @@ def main():
# Enable either the portmap or rpcbind service
try:
- portmap = ipaservices.knownservices.portmap
+ portmap = services.knownservices.portmap
portmap.enable()
servicemsg = portmap.service_name
except ipautil.CalledProcessError, cpe:
if cpe.returncode == 1:
try:
- rpcbind = ipaservices.knownservices.rpcbind
+ rpcbind = services.knownservices.rpcbind
rpcbind.enable()
servicemsg = rpcbind.service_name
except ipautil.CalledProcessError, cpe: