mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #3532: fix xen probe importing info
This commit is contained in:
parent
ba1bafe894
commit
05a3c1ff4b
@ -528,6 +528,7 @@ module XEN
|
||||
dom_hash = Hash.new
|
||||
|
||||
dom_hash[:name] = name
|
||||
dom_hash[:vm_name] = name
|
||||
dom_hash[:state] = get_state(dom_data[1])
|
||||
dom_hash[:usedcpu] = dom_data[3]
|
||||
dom_hash[:usedmemory] = dom_data[4]
|
||||
@ -588,6 +589,7 @@ module XEN
|
||||
name = URI.escape(name)
|
||||
|
||||
tmp = %Q<NAME = "#{name}"\n>
|
||||
tmp << %Q<IMPORT_VM_ID = "#{name}"\n>
|
||||
|
||||
vcpus = dom['config']['b_info']['max_vcpus'].to_i
|
||||
vcpus = 1 if vcpus < 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user