app/controllers/kpm/plugins_controller.rb in killbill-kpm-ui-2.0.2 vs app/controllers/kpm/plugins_controller.rb in killbill-kpm-ui-2.1.1
- old
+ new
@@ -17,11 +17,11 @@
rescue StandardError => e
# No connectivity or version not in Nexus
Rails.logger.warn("Unable to get latest plugins for version #{full_kb_version}: #{e.inspect}")
plugins_metadata = ::Killbill::KPM::KPMClient.get_available_plugins('LATEST', false, options_for_klient)
end
- @plugins = Hash[plugins_metadata['plugins'].sort]
+ @plugins = plugins_metadata['plugins'].sort.to_h
end
end
private
@@ -38,10 +38,10 @@
return nil if nodes_info.blank?
first_node_version = nodes_info.first.kb_version
nodes_by_kb_version = {}
nodes_info.each do |node|
- nodes_by_kb_version[node.kb_version] = "#{(nodes_by_kb_version[node.kb_version] || '')} #{node.node_name}"
+ nodes_by_kb_version[node.kb_version] = "#{nodes_by_kb_version[node.kb_version] || ''} #{node.node_name}"
end
[nodes_by_kb_version, first_node_version.scan(/(\d+\.\d+)(\.\d)?/).flatten[0]]
end
end
end