We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1d299 commit cc686aaCopy full SHA for cc686aa
lib/puppet/provider/package/yum.rb
@@ -380,16 +380,18 @@ def disableexcludes
380
def scan_options(options, key)
381
return [] unless options.is_a?(Enumerable)
382
383
- values = options.map do |repo|
384
- value = if repo.is_a?(String)
385
- next unless repo.include?('=')
386
-
387
- Hash[*repo.strip.split('=')] # make it a hash
388
- else
389
- repo
390
- end
391
- value[key]
392
+ values =
+ options.map do |repo|
+ value =
+ if repo.is_a?(String)
+ next unless repo.include?('=')
+
+ Hash[*repo.strip.split('=')] # make it a hash
+ else
+ repo
+ end
393
+ value[key]
394
395
values.compact.uniq
396
end
397
0 commit comments