diff options
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 |