diff --git a/plugins/module_utils/helper/main.py b/plugins/module_utils/helper/main.py index 7a2480b..c8951eb 100644 --- a/plugins/module_utils/helper/main.py +++ b/plugins/module_utils/helper/main.py @@ -506,6 +506,6 @@ def unset_check_error(params: dict, field: str, fail: bool) -> bool: return True def sanitize_module_args(args: dict) -> dict: - args.pop('api_key') - args.pop('api_secret') + args.pop('api_key', None) + args.pop('api_secret', None) return args