summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2016-06-06 13:35:20 +0200
committerJan Cholasta <jcholast@redhat.com>2016-06-09 09:11:28 +0200
commit3157eec28ff35e3c407a9552d6b59bef9891b555 (patch)
tree53a77a2df1c23d0f88446b0c30bb4f548b15948b /ipaserver/plugins
parent9c19dd3506a28d4966adb950c8f5016d6d5ce55a (diff)
downloadfreeipa-3157eec28ff35e3c407a9552d6b59bef9891b555.tar.gz
freeipa-3157eec28ff35e3c407a9552d6b59bef9891b555.tar.xz
freeipa-3157eec28ff35e3c407a9552d6b59bef9891b555.zip
replica install: use remote server API to create service entries
Use the existing remote server API to create service entries instead of a client API. This fixes a crash during replica promotion due to unavailable schema. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r--ipaserver/plugins/service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/service.py b/ipaserver/plugins/service.py
index 80cf39350..7b8f2a7aa 100644
--- a/ipaserver/plugins/service.py
+++ b/ipaserver/plugins/service.py
@@ -556,7 +556,7 @@ class service_add(LDAPCreate):
raise errors.HostService()
try:
- hostresult = api.Command['host_show'](hostname)['result']
+ hostresult = self.api.Command['host_show'](hostname)['result']
except errors.NotFound:
raise errors.NotFound(
reason=_("The host '%s' does not exist to add a service to.") %