mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Convert ints to strings when using file.append in sls file
This commit is contained in:
parent
991a659961
commit
e726791efc
@ -2565,6 +2565,10 @@ def append(name,
|
||||
return tmpret
|
||||
text = tmpret['data']
|
||||
|
||||
for item in range(len(text)):
|
||||
if isinstance(item, integer_types):
|
||||
text[item] = str(text[item])
|
||||
|
||||
if isinstance(text, string_types):
|
||||
text = (text,)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user