mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-22 22:03:39 +03:00
Bug deleting hosts
git-svn-id: http://svn.opennebula.org/one/trunk@905 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
parent
91ebf207b0
commit
f52dc913c5
@ -210,7 +210,7 @@ def vms_in_host?(host_id)
|
||||
exit -1
|
||||
end
|
||||
|
||||
host['host_shares/running_vms'].to_i
|
||||
host['host_share/running_vms'].to_i
|
||||
|
||||
end
|
||||
|
||||
@ -298,7 +298,7 @@ when "delete"
|
||||
exit -1
|
||||
end
|
||||
|
||||
if host['host_shares/running_vms'].to_i != 0
|
||||
if host['host_share/running_vms'].to_i != 0
|
||||
puts "Host still has associated VMs. It will be disabled instead."
|
||||
result=host.disable
|
||||
if is_successful?(result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user