mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Check for dictionary explicitly since we're accessing it as one
Fixes #36373.
This commit is contained in:
parent
b2365f553e
commit
0b63ed258f
1 changed files with 1 additions and 1 deletions
|
@ -863,7 +863,7 @@ def lowdata_fmt():
|
|||
# if the data was sent as urlencoded, we need to make it a list.
|
||||
# this is a very forgiving implementation as different clients set different
|
||||
# headers for form encoded data (including charset or something similar)
|
||||
if data and not isinstance(data, list):
|
||||
if data and isinstance(data, collections.Mapping):
|
||||
# Make the 'arg' param a list if not already
|
||||
if 'arg' in data and not isinstance(data['arg'], list):
|
||||
data['arg'] = [data['arg']]
|
||||
|
|
Loading…
Add table
Reference in a new issue