Skip to content

Commit d722d4c

Browse files
authored
Fix string interpolation error (#33)
This fixes a positional error with string interpolation here, causing IndexErrors. Introduced from previous refactoring
1 parent 8dddd0a commit d722d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/lookup/lookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,6 @@ def get_secret_data(
391391
secret_data: str = secret.to_dict()["data"][field]
392392
return [secret_data]
393393
except Exception as e:
394-
error_message = f"{SECRET_LOOKUP_ERROR.format(secret_id)}: {e}"
394+
error_message = SECRET_LOOKUP_ERROR.format(secret_id, e)
395395
display.error(error_message)
396396
raise AnsibleLookupError(error_message) from e

0 commit comments

Comments
 (0)