1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Warning message for onevm delete (disabled instead of deleted) (#8)

git-svn-id: http://svn.opennebula.org/one/trunk@504 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños 2009-05-06 14:08:31 +00:00
parent 601a13f2e3
commit 0ffe14c3b6

View File

@ -267,6 +267,7 @@ when "delete"
check_parameters("delete", 1)
host_id=get_host_id(host, ARGV[0])
if vms_in_host?(host_id)
puts "Host still has associated VMs. It will be disabled instead."
result=host.disable(host_id)
if result[0]
puts "Host disabled" if ops[:verbose]