Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Resolve Revocation Notification environment variable name collision #1751

Merged
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aries_cloudagent/config/argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ def add_arguments(self, parser: ArgumentParser):
parser.add_argument(
"--monitor-revocation-notification",
action="store_true",
env_var="ACAPY_NOTIFY_REVOCATION",
env_var="ACAPY_MONITOR_REVOCATION_NOTIF",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit, but I like it when the env variable follows the argument (so I could guess what the env name is from the arg name)

Suggested change
env_var="ACAPY_MONITOR_REVOCATION_NOTIF",
env_var="ACAPY_MONITOR_REVOCATION_NOTIFICATION",

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough on you're point, let's make that change

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The abbreviation feels slightly out of place but it's also one of the longest monitoring subjects so I'm not feeling particularly nit-picky on that point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's the main reason why I shortened it, because it's such a long environment variable

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

help=(
"Specifies that aca-py will emit webhooks on notification of "
"revocation received."
Expand Down