diff --git a/collections/ansible_collections/nullified/infrastructure/plugins/modules/github_artifact.py b/collections/ansible_collections/nullified/infrastructure/plugins/modules/github_artifact.py index 9c10941..b94ced1 100644 --- a/collections/ansible_collections/nullified/infrastructure/plugins/modules/github_artifact.py +++ b/collections/ansible_collections/nullified/infrastructure/plugins/modules/github_artifact.py @@ -338,6 +338,10 @@ def main(): artifact: dict[str, str | list[str]] = {} for param_name in ["asset_name", "asset_type", "cmds", "repository", "version"]: artifact[param_name] = ANSIBLE_MODULE.params[param_name] + if not artifact["version"]: + artifact["version"] = "latest" + if not artifact["cmds"]: + artifact["cmds"] = [] asset_data: dict[str, str] = fetch_metadata(artifact) result["rate_limit_remaining"] = asset_data.get("rate_limit_remaining", "unknown")