Compare commits

...

4 Commits

Author SHA1 Message Date
Denis Knauf f780eccc6a version 0.3.3 typo bugfix 2024-03-28 23:31:01 +01:00
Denis Knauf 5eb6cd52eb typo fixed 2024-03-28 17:48:03 +01:00
Denis Knauf d6e7d84afc version 0.3.2 bugfix for correct handling "already started" 2023-10-21 00:14:26 +02:00
Denis Knauf e2b38ca779 debug-output removed 2023-09-21 19:21:18 +02:00
4 changed files with 4 additions and 4 deletions

View File

@ -178,7 +178,7 @@ class PVE::Cli
def start host, node: nil, timeout: nil, fire: nil, secs: nil
timeout ||= 60
if host.running?
condition_violation "Already running."
ConditionViolation "Already running."
return
end
task = host.start

View File

@ -54,7 +54,7 @@ def cli_task
tcli.cmd( :status, "Lists tasks with status", aliases: [nil], &lambda {|target=nil, sort: nil, node: nil, status: nil|
connect
task_table order: [2] do |push|
Proxmox::Node.all.each {|n| n.tasks.each {|t| p t; push.call t } }
Proxmox::Node.all.each {|n| n.tasks.each &push }
end
})

View File

@ -406,7 +406,7 @@ module Proxmox
end
def refresh!
__updata__ rest_get( "#{@rest_prefix}/status/current").merge( node: @node, t: @t)
__update__ rest_get( "#{@rest_prefix}/status/current").merge( node: @node, t: @t)
end
def __update__ **data

View File

@ -1,3 +1,3 @@
module PVE
VERSION = '0.3.1'
VERSION = '0.3.3'
end