diff options
author | Pavel Zuna <pzuna@redhat.com> | 2010-02-23 15:24:44 +0100 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2010-02-23 17:54:52 -0500 |
commit | 5db8ebb48e8fd8ed927e15f124ed23da2de60ff9 (patch) | |
tree | f3b1d7d88c43623d137d3a50c02e766196ae6b49 /ipalib | |
parent | 899f31835916c3ab6118eacb4f2b5e5f943087dc (diff) | |
download | freeipa-5db8ebb48e8fd8ed927e15f124ed23da2de60ff9.tar.gz freeipa-5db8ebb48e8fd8ed927e15f124ed23da2de60ff9.tar.xz freeipa-5db8ebb48e8fd8ed927e15f124ed23da2de60ff9.zip |
Replace incorrect use of str.index with str.find in host plugin.
Diffstat (limited to 'ipalib')
-rw-r--r-- | ipalib/plugins/host.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index c459cfe09..991b0548d 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -39,7 +39,7 @@ def validate_host(ugettext, fqdn): """ Require at least one dot in the hostname (to support localhost.localdomain) """ - if fqdn.index('.') == -1: + if fqdn.find('.') == -1: return 'Fully-qualified hostname required' return None |