Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Replace is_array with Puppet 4 native comparision
Browse files Browse the repository at this point in the history
  • Loading branch information
baurmatt committed Oct 26, 2018
1 parent 2c1f3f4 commit 709435a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manifests/slave.pp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
$quoted_ui_pass = shellquote($ui_pass)

if $labels {
if is_array($labels) {
if $labels =~ Array {
$_combined_labels = hiera_array('jenkins::slave::labels', $labels)
$_real_labels = join($_combined_labels, ' ')
}
Expand All @@ -169,7 +169,7 @@
}

if $java_args {
if is_array($java_args) {
if $java_args =~ Array {
$_combined_java_args = hiera_array('jenkins::slave::java_args', $java_args)
$_real_java_args = join($_combined_java_args, ' ')
}
Expand All @@ -179,7 +179,7 @@
}

if $swarm_client_args {
if is_array($swarm_client_args) {
if $swarm_client_args =~ Array {
$_combined_swarm_client_args = hiera_array('jenkins::slave::swarm_client_args', $swarm_client_args)
$_real_swarm_client_args = join($_combined_swarm_client_args, ' ')
}
Expand Down

0 comments on commit 709435a

Please sign in to comment.