mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Replace incorrect use of str.index with str.find in host plugin.
This commit is contained in:
parent
899f318359
commit
5db8ebb48e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user