From 8f3442a5e4a2f9f405b0d6223a03c12e27207811 Mon Sep 17 00:00:00 2001 From: "Ruben S.Montero" Date: Sat, 24 Dec 2011 00:35:08 +0100 Subject: [PATCH] Feature #1020: Fix bug for VM poll --- src/mad/ruby/vmwarelib.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mad/ruby/vmwarelib.rb b/src/mad/ruby/vmwarelib.rb index 6de5172548..f730e39922 100644 --- a/src/mad/ruby/vmwarelib.rb +++ b/src/mad/ruby/vmwarelib.rb @@ -127,13 +127,13 @@ class VMwareDriver case state when "running","blocked","shutdown","dying" - state = 'a' + state_short = 'a' when "paused" - state = 'p' + state_short = 'p' when "crashed" - state = 'c' + state_short = 'c' else - state = 'd' + state_short = 'd' end return "STATE=#{state_short}"