mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
"Unsafe" rubocop fixes
Adds the remaining "unsafe" fixes that aren't included in #359
This commit is contained in:
parent
252a2c2344
commit
f22a84f26f
19 changed files with 46 additions and 9 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'vmpooler/providers'
|
||||
require 'spicy-proton'
|
||||
|
||||
|
|
@ -54,7 +56,7 @@ module Vmpooler
|
|||
pool_keys.each do |k|
|
||||
to_set[k] = pool[k]
|
||||
end
|
||||
to_set['alias'] = pool['alias'].join(',') if to_set.has_key?('alias')
|
||||
to_set['alias'] = pool['alias'].join(',') if to_set.key?('alias')
|
||||
$redis.hmset("vmpooler__pool__#{pool['name']}", to_set.to_a.flatten) unless to_set.empty?
|
||||
end
|
||||
previously_configured_pools.each do |pool|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue