Skip to content

Commit ca2fc6a

Browse files
authored
Decrypt ansible-vault strings in nb_inventory (#1114)
This allows storing secrets in config context data.
1 parent 59ad4d8 commit ca2fc6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/inventory/nb_inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def _fetch_information(self, url):
454454
)
455455

456456
try:
457-
results = json.loads(raw_data)
457+
results = self.loader.load(raw_data, json_only=True)
458458
except ValueError:
459459
raise AnsibleError("Incorrect JSON payload: %s" % raw_data)
460460

0 commit comments

Comments
 (0)