1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-22 13:33:52 +03:00

Merge branch 'master' of git.opennebula.org:one

This commit is contained in:
Tino Vazquez 2012-01-12 18:36:57 +01:00
commit a709c1a306
2 changed files with 2 additions and 3 deletions

View File

@ -159,7 +159,7 @@ class VmmAction
# Roll back steps, store failed info and break steps
if DriverExecHelper.failed?(result)
execute_steps(@data[:fail_actions]) if @data[:fail_actions]
execute_steps(step[:fail_actions]) if step[:fail_actions]
@data[:failed_info] = info
@vmm.log(@id,

View File

@ -118,9 +118,8 @@ class OpenNebulaNetwork
def detect_hypervisor
lsmod = `#{COMMANDS[:lsmod]}`
xen_file = "/proc/xen/capabilities"
xen_content = "control_d"
if File.readable?(xen_file) and File.read(xen_file).strip == xen_content
if File.exists?(xen_file)
"xen"
elsif lsmod.match(/kvm/)
"kvm"