mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Fix a bug with inventory.variables
Using Page[key] instead of Page.json[key] causes inner json blob strings to automatically get parsed, which is not what we want with this field.
This commit is contained in:
parent
30a3e3e172
commit
a1f7d0b781
@ -102,8 +102,9 @@ class ApiV2(base.Base):
|
||||
return None
|
||||
|
||||
try:
|
||||
# Note: doing asset[key] automatically parses json blob strings, which can be a problem.
|
||||
fields = {
|
||||
key: asset[key] for key in options
|
||||
key: asset.json[key] for key in options
|
||||
if key in asset.json and key not in asset.related
|
||||
}
|
||||
fields['natural_key'] = get_natural_key(asset)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user