Skip to content

Commit 3c5206f

Browse files
committed
(maint) Fix skip_if_unavailable allowed datatypes
In PR #663 an overly strict datatype was set for the skip_if_unavailable parameter. The yumrepo type supports a variety of string values and boolean values.
1 parent 69decce commit 3c5206f

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
@@ -101,6 +101,7 @@
101101
# @param version_file_path
102102
# The default install path for the VERSION file
103103
# @param skip_if_unavailable
104+
# For yum-based repositories, set the skip_if_unavailable option of the `yumrepo` type.
104105
# @param disable_proxy
105106
class puppet_agent (
106107
String $arch = $facts['os']['architecture'],
@@ -125,7 +126,7 @@
125126
Boolean $disable_proxy = false,
126127
Optional $proxy = undef,
127128
Array $install_options = [],
128-
String $skip_if_unavailable = 'absent',
129+
Variant[Boolean, String] $skip_if_unavailable = 'absent',
129130
Boolean $msi_move_locked_files = false,
130131
Optional $wait_for_pxp_agent_exit = undef,
131132
Optional $wait_for_puppet_run = undef,

0 commit comments

Comments
 (0)