Skip to content

Commit

Permalink
fixed response casting and private key file conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
$GITHUB_ACTOR committed Nov 21, 2024
1 parent 4252249 commit 32d6d25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/lookup/cyberark_ccp.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def run(self, terms, variables, **kwargs):
certificate_file = kwargs.get("certificate_file")
private_key_file = kwargs.get("private_key_file")

if certificate_file is not None and private_key_file is None:
if certificate_file is not None and private_key_file is not None:
http_kwargs.update({
"certificate_file": certificate_file,
"private_key_file": private_key_file
Expand All @@ -198,7 +198,7 @@ def run(self, terms, variables, **kwargs):
except Exception as exc:
raise AnsibleError(str(exc))

content = resp.Json().get("Content")
content = resp.json().get("Content")
if not content:
raise AnsibleError("error trying to retrieve password")

Expand Down

0 comments on commit 32d6d25

Please sign in to comment.