summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipaserver/bindinstance.py
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2008-05-15 11:33:07 -0400
committerSimo Sorce <ssorce@redhat.com>2008-05-15 14:26:25 -0400
commit6119f83799a70738170e19f3e2d833fdf4ecbc86 (patch)
treedf600786309c2b32e4adb9a2234777728accc3df /ipa-server/ipaserver/bindinstance.py
parent58592c3b4f376a5387982607b39ba68ca887411d (diff)
downloadfreeipa-6119f83799a70738170e19f3e2d833fdf4ecbc86.tar.gz
freeipa-6119f83799a70738170e19f3e2d833fdf4ecbc86.tar.xz
freeipa-6119f83799a70738170e19f3e2d833fdf4ecbc86.zip
Use split instead of find as split does not fail to provide a complete
component if no '.' is found.
Diffstat (limited to 'ipa-server/ipaserver/bindinstance.py')
-rw-r--r--ipa-server/ipaserver/bindinstance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipa-server/ipaserver/bindinstance.py b/ipa-server/ipaserver/bindinstance.py
index 6a52e0f52..3ddbefe1b 100644
--- a/ipa-server/ipaserver/bindinstance.py
+++ b/ipa-server/ipaserver/bindinstance.py
@@ -48,7 +48,7 @@ class BindInstance(service.Service):
self.ip_address = ip_address
self.realm = realm_name
self.domain = domain_name
- self.host = fqdn[:fqdn.find(".")]
+ self.host = fqdn.split(".")[0]
self.__setup_sub_dict()