Rubocop fix

This commit is contained in:
Belen Bustamante 2020-10-23 17:44:48 -07:00
commit 474aba379c
2 changed files with 7 additions and 5 deletions

View file

@ -114,11 +114,13 @@ module Vmpooler
end
def export_tags(backend, hostname, tags)
tags.each_pair do |tag, value|
next if value.nil? or value.empty?
backend.pipelined do
tags.each_pair do |tag, value|
next if value.nil? or value.empty?
backend.hset("vmpooler__vm__#{hostname}", "tag:#{tag}", value)
backend.hset("vmpooler__tag__#{Date.today}", "#{hostname}:#{tag}", value)
backend.hset("vmpooler__vm__#{hostname}", "tag:#{tag}", value)
backend.hset("vmpooler__tag__#{Date.today}", "#{hostname}:#{tag}", value)
end
end
end