diff --git a/packages/cmk-plugin-apis/cmk/password_store/v1_unstable/_convenience.py b/packages/cmk-plugin-apis/cmk/password_store/v1_unstable/_convenience.py index 80e29ba0152..2c886dd9115 100644 --- a/packages/cmk-plugin-apis/cmk/password_store/v1_unstable/_convenience.py +++ b/packages/cmk-plugin-apis/cmk/password_store/v1_unstable/_convenience.py @@ -105,6 +105,7 @@ def resolve_secret_option(args: argparse.Namespace, option_name: str) -> Secret[ """ + option_name = option_name.replace("-", "_") if (secret_id := getattr(args, f"{option_name}_id", None)) is not None: return dereference_secret(secret_id)