Replace incorrect use of str.index with str.find in host plugin.

This commit is contained in:
Pavel Zuna 2010-02-23 15:24:44 +01:00 committed by Rob Crittenden
parent 899f318359
commit 5db8ebb48e

View File

@ -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