Skip to content
This repository was archived by the owner on Nov 24, 2023. It is now read-only.

Commit 7c7e629

Browse files
committed
fail
1 parent bedb987 commit 7c7e629

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

manifests/instance.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
} elsif $enterprise_name {
8383
$token_url = "${github_api}/enterprises/${enterprise_name}/actions/runners/registration-token"
8484
$url = "${github_domain}/enterprises/${enterprise_name}"
85+
} else {
86+
fail("Either 'org_name' or 'enterprise_name' is required to create runner instances")
8587
}
8688

8789
$archive_name = "${github_actions_runner::package_name}-${github_actions_runner::package_ensure}.tar.gz"

0 commit comments

Comments
 (0)