You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by ma...@apache.org on 2012/03/30 14:46:36 UTC

git commit: Fix typo in rhevm_driver: fixes error message to match operation

Updated Branches:
  refs/heads/master a16c34de0 -> d30e89ef2


Fix typo in rhevm_driver: fixes error message to match operation

Reported as DTACLOUD_185

https://issues.apache.org/jira/browse/DTACLOUD-185

Many thanks to Dies Koper <di...@fast.au.fujitsu.com>

"when an error occurs with the stop_instance or reboot_instance operation on the
rhevm driver, the error message says the start operation failed"


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

Branch: refs/heads/master
Commit: d30e89ef2e27a0b3b45c3c9ec2dc3e25902ca270
Parents: a16c34d
Author: marios <ma...@redhat.com>
Authored: Fri Mar 30 15:41:08 2012 +0300
Committer: marios <ma...@redhat.com>
Committed: Fri Mar 30 15:41:08 2012 +0300

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


http://git-wip-us.apache.org/repos/asf/deltacloud/blob/d30e89ef/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 eae1c2a..1c96df7 100644
--- a/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
+++ b/server/lib/deltacloud/drivers/rhevm/rhevm_driver.rb
@@ -152,14 +152,14 @@ class RHEVMDriver < Deltacloud::BaseDriver
   def stop_instance(credentials, id)
     client = new_client(credentials)
     safely do
-      raise "ERROR: Operation start failed" unless client.vm_action(id, :shutdown)
+      raise "ERROR: Operation stop failed" unless client.vm_action(id, :shutdown)
     end
   end
 
   def destroy_instance(credentials, id)
     client = new_client(credentials)
     safely do
-      raise "ERROR: Operation start failed" unless client.destroy_vm(id)
+      raise "ERROR: Operation destroy failed" unless client.destroy_vm(id)
     end
   end