string.find doesn't exist in python3. Instead use the 'find' method
of the string instance itself
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
options.username = '%'
domain = ''
- if string.find(options.username, '\\') != -1:
+ if options.username.find('\\') != -1:
domain, options.username = string.split(options.username, '\\')
password = ''
- if string.find(options.username, '%') != -1:
+ if options.username.find('%') != -1:
options.username, password = string.split(options.username, '%')
username = options.username