Compare commits
4 Commits
Author | SHA1 | Date |
---|---|---|
Denis Knauf | f780eccc6a | |
Denis Knauf | 5eb6cd52eb | |
Denis Knauf | d6e7d84afc | |
Denis Knauf | e2b38ca779 |
|
@ -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
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
module PVE
|
||||
VERSION = '0.3.1'
|
||||
VERSION = '0.3.3'
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue