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

Commit 22917a5

Browse files
committed
Fix conditional
1 parent 33feee8 commit 22917a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

manifests/instance.pp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
String $group = $github_actions_runner::group,
4848
String $hostname = $::facts['hostname'],
4949
String $instance_name = $title,
50+
String $github_domain = $github_actions_runner::github_domain,
51+
String $github_api = $github_actions_runner::github_api,
5052
Optional[String] $http_proxy = $github_actions_runner::http_proxy,
5153
Optional[String] $https_proxy = $github_actions_runner::https_proxy,
5254
Optional[String] $no_proxy = $github_actions_runner::no_proxy,
5355
Optional[Array[String]] $labels = undef,
5456
Optional[String] $repo_name = undef,
5557
Optional[String] $enterprise_name = $github_actions_runner::enterprise_name,
56-
String $github_domain = $github_actions_runner::github_domain,
57-
String $github_api = $github_actions_runner::github_api,
5858
) {
5959

6060
if $labels {
@@ -70,7 +70,7 @@
7070
} elsif $repo_name {
7171
$token_url = "${github_api}/repos/${org_name}/${repo_name}/actions/runners/registration-token"
7272
$url = "${github_domain}/${org_name}/${repo_name}"
73-
} else $org_name {
73+
} else {
7474
$token_url = $github_api ? {
7575
'https://api.github.com' => "${github_api}/repos/${org_name}/actions/runners/registration-token",
7676
default => "${github_api}/orgs/${org_name}/actions/runners/registration-token",

0 commit comments

Comments
 (0)