1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fix pep8 error in password lookup

This commit is contained in:
James Tanner 2013-11-19 16:36:18 -05:00
parent e81c976636
commit b815a09529

View file

@ -62,7 +62,8 @@ class LookupModule(object):
paramvals[name] = int(value) paramvals[name] = int(value)
elif name == 'chars': elif name == 'chars':
use_chars=[] use_chars=[]
if ",," in value: use_chars.append(',') if ",," in value:
use_chars.append(',')
use_chars.extend(value.replace(',,',',').split(',')) use_chars.extend(value.replace(',,',',').split(','))
paramvals['chars'] = use_chars paramvals['chars'] = use_chars
else: else: