deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfoj...@apache.org
Subject [1/3] git commit: RHEV-M: Fixed incorrectly reported instance state when shutting down
Date Tue, 21 Feb 2012 12:00:31 GMT
Updated Branches:
  refs/heads/master e63215661 -> fc32d5582


RHEV-M: Fixed incorrectly reported instance state when shutting down


Project: http://git-wip-us.apache.org/repos/asf/deltacloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltacloud/commit/fc32d558
Tree: http://git-wip-us.apache.org/repos/asf/deltacloud/tree/fc32d558
Diff: http://git-wip-us.apache.org/repos/asf/deltacloud/diff/fc32d558

Branch: refs/heads/master
Commit: fc32d55822e6fd4467904b7df0e42d302211d8c2
Parents: e582d7a
Author: Michal Fojtik <mfojtik@redhat.com>
Authored: Tue Feb 21 12:50:44 2012 +0100
Committer: Michal fojtik <mfojtik@redhat.com>
Committed: Tue Feb 21 13:01:15 2012 +0100

----------------------------------------------------------------------
 .../lib/deltacloud/drivers/rhevm/rhevm_driver.rb   |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/fc32d558/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
----------------------------------------------------------------------
diff --git a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
index c4d4386..e974944 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -281,8 +281,10 @@ class RHEVMDriver < Deltacloud::BaseDriver
     end
     case state.strip.upcase
     when 'WAIT_FOR_LAUNCH', 'REBOOT_IN_PROGRESS', 'SAVING_STATE',
-      'RESTORING_STATE', 'POWERING_DOWN', 'POWERING_UP', 'IMAGE_LOCKED', 'SAVING_STATE' then
+      'RESTORING_STATE', 'POWERING_UP', 'IMAGE_LOCKED', 'SAVING_STATE' then
       'PENDING'
+    when 'POWERING_DOWN' then
+      'STOPPING'
     when 'UNASSIGNED', 'DOWN', 'PAUSED', 'NOT_RESPONDING', 'SUSPENDED', 'IMAGE_ILLEGAL',
'UNKNOWN' then
       'STOPPED'
     when 'UP', 'MIGRATING_TO', 'MIGRATING_FROM'


Mime
View raw message