Skip to content

Commit a1d27b9

Browse files
committed
Merge pull request saltstack#16764 from thatch45/16762
Don't allow args to be longs, msgpack does not like this and jids
2 parents abd7910 + 8ad8fa9 commit a1d27b9

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

salt/utils/args.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ def condition_input(args, kwargs):
1717
'''
1818
Return a single arg structure for the publisher to safely use
1919
'''
20+
ret = []
21+
for arg in args:
22+
if isinstance(arg, long):
23+
ret.append(str(arg))
24+
else:
25+
ret.append(arg)
2026
if isinstance(kwargs, dict) and kwargs:
2127
kw_ = {'__kwarg__': True}
2228
for key, val in kwargs.iteritems():
2329
kw_[key] = val
24-
return list(args) + [kw_]
25-
return args
30+
return ret + [kw_]
31+
return ret
2632

2733

2834
def parse_input(args, condition=True):

0 commit comments

Comments
 (0)