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

Indentation fix

This commit is contained in:
Michael DeHaan 2013-05-11 17:23:45 -04:00
parent 3d3a050648
commit 0a1657080b

View file

@ -646,9 +646,9 @@ def compile_when_to_only_if(expression):
#tcopy[i] = "%s('''%s''')" % (cast, t)
t2 = t.strip()
if (t2[0].isalpha() or t2[0] == '$') and cast == 'str' and t2 != 'in':
tcopy[i] = "'%s'" % (t)
tcopy[i] = "'%s'" % (t)
else:
tcopy[i] = t
tcopy[i] = t
result = " ".join(tcopy)
return result