mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 15:06:02 -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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user