Skip to content

Commit

Permalink
removed trailing whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ramavenkata-loya committed May 16, 2024
1 parent 560c17b commit b646a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/lookup/conjur_variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,12 @@ def _store_secret_in_file(value):

class LookupModule(LookupBase):


def run(self, terms, variables=None, **kwargs):
if terms == []:
raise AnsibleError("Invalid secret path: no secret path provided.")
elif not terms[0] or terms[0].isspace():
raise AnsibleError("Invalid secret path: empty secret path not accepted.")

# We should register the variables as LookupModule options.
#
# Doing this has some nice advantages if we're considering supporting
Expand Down

0 comments on commit b646a67

Please sign in to comment.