From 8c790ef59f23304309d660a08d87d20c467e07ce Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 8 Nov 2023 09:42:46 +0100 Subject: [PATCH] Decrypt ansible-vault strings in nb_inventory This allows storing secrets in config context data. --- plugins/inventory/nb_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inventory/nb_inventory.py b/plugins/inventory/nb_inventory.py index 8f3136536..6b2ed6a5f 100644 --- a/plugins/inventory/nb_inventory.py +++ b/plugins/inventory/nb_inventory.py @@ -453,7 +453,7 @@ def _fetch_information(self, url): ) try: - results = json.loads(raw_data) + results = self.loader.load(raw_data, json_only=True) except ValueError: raise AnsibleError("Incorrect JSON payload: %s" % raw_data)