From 5db8ebb48e8fd8ed927e15f124ed23da2de60ff9 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Tue, 23 Feb 2010 15:24:44 +0100 Subject: Replace incorrect use of str.index with str.find in host plugin. --- ipalib/plugins/host.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib') 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 -- cgit