|
96 | 96 | class yum (
|
97 | 97 | Boolean $clean_old_kernels = true,
|
98 | 98 | Boolean $keep_kernel_devel = false,
|
99 |
| - Hash[String, Variant[String, Integer, Boolean, Hash[String, Variant[String, Integer, Boolean]]]] $config_options = { }, |
| 99 | + Hash[String, Variant[String, Integer, Boolean, Hash[String, Variant[String, Integer, Boolean]]]] $config_options = {}, |
100 | 100 | Optional[Hash[String, Optional[Hash[String, Variant[String, Integer, Boolean]]]]] $repos = {},
|
101 | 101 | Array[String] $managed_repos = [],
|
102 | 102 | Boolean $manage_os_default_repos = false,
|
|
105 | 105 | Hash[String, Hash[String, String]] $gpgkeys = {},
|
106 | 106 | String $utils_package_name = 'yum-utils',
|
107 | 107 | ) {
|
108 |
| - |
109 | 108 | $module_metadata = load_module_metadata($module_name)
|
110 | 109 | $supported_operatingsystems = $module_metadata['operatingsystem_support']
|
111 | 110 | $supported_os_names = $supported_operatingsystems.map |$os| {
|
|
162 | 161 | }
|
163 | 162 |
|
164 | 163 | $_normalized_ensure = $_ensure ? {
|
165 |
| - Boolean => Hash({ ensure => bool2num($_ensure) }), # lint:ignore:unquoted_string_in_selector |
166 |
| - default => Hash({ ensure => $_ensure }), # lint:ignore:unquoted_string_in_selector |
| 164 | + Boolean => Hash( { ensure => bool2num($_ensure) }), # lint:ignore:unquoted_string_in_selector |
| 165 | + default => Hash( { ensure => $_ensure }), # lint:ignore:unquoted_string_in_selector |
167 | 166 | }
|
168 | 167 |
|
169 | 168 | $_normalized_attrs = $attrs ? {
|
170 | 169 | Hash => merge($attrs, $_normalized_ensure),
|
171 | 170 | default => $_normalized_ensure,
|
172 | 171 | }
|
173 | 172 |
|
174 |
| - Hash({ $key => $_normalized_attrs }) |
| 173 | + Hash( { $key => $_normalized_attrs }) |
175 | 174 | }.reduce |$memo, $cfg_opt_hash| {
|
176 | 175 | merge($memo, $cfg_opt_hash)
|
177 | 176 | }
|
|
0 commit comments