From 0ffe14c3b68223f90962dbd5d24fb566c297b10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Font=C3=A1n=20Mui=C3=B1os?= Date: Wed, 6 May 2009 14:08:31 +0000 Subject: [PATCH] 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 --- src/client/ruby/onehost | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/ruby/onehost b/src/client/ruby/onehost index 5f33b60143..5b92316399 100755 --- a/src/client/ruby/onehost +++ b/src/client/ruby/onehost @@ -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]