Bugfix: Task-handling.
This commit is contained in:
parent
cf9093bafb
commit
1ec6b5c6d1
|
@ -334,7 +334,7 @@ module Proxmox
|
|||
|
||||
def resize disk, size
|
||||
upid = rest_put "#{@rest_prefix}/resize", disk: disk, size: size
|
||||
Task.send :__new__, node: node, host: @temp, upid: upid
|
||||
Task.send :__new__, node: @node, host: self, upid: upid
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -495,9 +495,10 @@ module Proxmox
|
|||
swap: tmplt.swap,
|
||||
unprivileged: tmplt.unprivileged,
|
||||
}.delete_if {|k,v| v.nil? }
|
||||
@temp = LXC.send :__new__, node: node, vmid: options[:vmid], name: name, hostname: options[:hostname]
|
||||
|
||||
temp = LXC.send :__new__, node: node, vmid: options[:vmid], name: name, hostname: options[:hostname]
|
||||
upid = rest_post( "/nodes/%s/lxc" % node.node, **options)
|
||||
Task.send :__new__, node: node, host: @temp, upid: upid
|
||||
Task.send :__new__, node: node, host: temp, upid: upid
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue