mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02: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:
@@ -102,8 +102,9 @@ class ApiV2(base.Base):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
# Note: doing asset[key] automatically parses json blob strings, which can be a problem.
|
||||||
fields = {
|
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
|
if key in asset.json and key not in asset.related
|
||||||
}
|
}
|
||||||
fields['natural_key'] = get_natural_key(asset)
|
fields['natural_key'] = get_natural_key(asset)
|
||||||
|
|||||||
Reference in New Issue
Block a user