mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
I got None
in data which is not iterable. Account for that.
This commit is contained in:
parent
5a952ae861
commit
12e9fb5da6
@ -539,7 +539,7 @@ class BaseSaltAPIHandler(tornado.web.RequestHandler, SaltClientsMixIn): # pylin
|
||||
data = self.deserialize(self.request.body)
|
||||
self.raw_data = copy(data)
|
||||
|
||||
if 'arg' in data and not isinstance(data['arg'], list):
|
||||
if data and 'arg' in data and not isinstance(data['arg'], list):
|
||||
data['arg'] = [data['arg']]
|
||||
|
||||
if not isinstance(data, list):
|
||||
|
Loading…
Reference in New Issue
Block a user