From a9fb96e165dea581bd41ff8ebabfe7900e1d132a Mon Sep 17 00:00:00 2001 From: laszlojau <49835454+laszlojau@users.noreply.github.com> Date: Sat, 17 Jun 2023 21:58:45 +0930 Subject: [PATCH] Always return the original secret content --- plugins/lookup/tss.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/lookup/tss.py b/plugins/lookup/tss.py index 095bad0342..3a54015e41 100644 --- a/plugins/lookup/tss.py +++ b/plugins/lookup/tss.py @@ -300,9 +300,8 @@ class TSSClient(object): i['itemValue'] = "*** Not Valid For Display ***" else: raise AnsibleOptionsError("File download path does not exist") - return obj - else: - return self._client.get_secret_json(secret_id) + + return self._client.get_secret_json(secret_id) def get_secret_ids_by_folderid(self, term): display.debug("tss_lookup term: %s" % term)