lib/fog/proxmox/compute/models/node.rb in fog-proxmox-0.14.0 vs lib/fog/proxmox/compute/models/node.rb in fog-proxmox-0.15.0

- old
+ new

@@ -59,18 +59,17 @@ initialize_storages super(new_attributes) end def backup(options = {}) - task_upid = service.backup({ node: node }, options) - task_upid + service.backup({ node: node }, options) end - def statistics(output = 'rrddata', options = { timeframe: 'hour', cf: 'AVERAGE'}) + def statistics(output = 'rrddata', options = { timeframe: 'hour', cf: 'AVERAGE' }) path_params = { node: node, output: output } query_params = options - service.get_node_statistics(path_params,query_params) + service.get_node_statistics(path_params, query_params) end private def initialize_tasks @@ -86,10 +85,9 @@ end def initialize_storages attributes[:storages] = Fog::Proxmox::Compute::Storages.new(service: service, node_id: node) end - end end end end