mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-13 17:02:02 -05:00
Replace incorrect use of str.index with str.find in host plugin.
This commit is contained in:
1 parent
899f318359
commit
5db8ebb48e
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user