Skip to content

Commit

Permalink
Update secrets_redaction_error.py
Browse files Browse the repository at this point in the history
Change Secrets Redaction Error message for invalid admin function

Signed-off-by: Elijah Swift <elijah.swift@ibm.com>
  • Loading branch information
ElijahSwiftIBM committed Mar 1, 2024
1 parent a2e6cef commit 6a3be62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyracf/common/exceptions/secrets_redaction_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ def __init__(
self.message = self.message + (
f"\nCould not map {trait} to a valid segment trait."
)
else:
self.message = self.message + (
f"\n{profile_map[profile_type]} administration does"
+ " not support additional secrets redaction."
)

def __str__(self) -> str:
return self.message

0 comments on commit 6a3be62

Please sign in to comment.