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

Commit 45723ec

Browse files
author
shimon
committed
add else statement for assured labels
1 parent 6506850 commit 45723ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manifests/init.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
String $repository_url,
5858
String $user,
5959
String $group,
60-
String $assured_labels = undef,
6160
String $hostname = $::facts['hostname'],
6261
Optional[Array[String]] $labels = undef,
6362
Optional[String] $repo_name = undef,
@@ -69,6 +68,8 @@
6968
if $github_actions_runner::labels {
7069
$flattend_labels_list=join($github_actions_runner::labels, ',')
7170
$assured_labels="--labels ${flattend_labels_list}"
71+
} else {
72+
$assured_labels = undef
7273
}
7374

7475
$url = $github_actions_runner::repo_name ? {

0 commit comments

Comments
 (0)