mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix adding parameters to http.query from sdb yaml
This commit is contained in:
parent
d0f5b43753
commit
b92f908da4
1 changed files with 6 additions and 1 deletions
|
@ -119,10 +119,15 @@ def query(key, value=None, service=None, profile=None): # pylint: disable=W0613
|
|||
**key_vars
|
||||
)
|
||||
|
||||
extras = {}
|
||||
for item in profile[key]:
|
||||
if item not in ('backend', 'url'):
|
||||
extras[item] = profile[key][item]
|
||||
|
||||
result = http.query(
|
||||
url,
|
||||
decode=True,
|
||||
**key_vars
|
||||
**extras
|
||||
)
|
||||
|
||||
return result['dict']
|
||||
|
|
Loading…
Add table
Reference in a new issue