cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aprat...@apache.org
Subject git commit: updated refs/heads/4.3 to a74fe8d
Date Wed, 18 Dec 2013 09:27:37 GMT
Updated Branches:
  refs/heads/4.3 dd039da7e -> a74fe8d2a


CLOUDSTACK-4597: Complete Exceptions are getting displayed on the UI where there is an operation
failuire in sotrage migration

Signed-off-by: Abhinandan Prateek <aprateek@apache.org>


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

Branch: refs/heads/4.3
Commit: a74fe8d2aa60c66705ca98af92f73f8c1d07fc56
Parents: dd039da
Author: root <root@localhost.localdomain>
Authored: Tue Dec 10 16:34:42 2013 +0530
Committer: Abhinandan Prateek <aprateek@apache.org>
Committed: Wed Dec 18 14:57:11 2013 +0530

----------------------------------------------------------------------
 core/src/com/cloud/agent/api/MigrateWithStorageAnswer.java         | 2 +-
 .../cloudstack/storage/motion/VmwareStorageMotionStrategy.java     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a74fe8d2/core/src/com/cloud/agent/api/MigrateWithStorageAnswer.java
----------------------------------------------------------------------
diff --git a/core/src/com/cloud/agent/api/MigrateWithStorageAnswer.java b/core/src/com/cloud/agent/api/MigrateWithStorageAnswer.java
index 6468884..3812c2c 100644
--- a/core/src/com/cloud/agent/api/MigrateWithStorageAnswer.java
+++ b/core/src/com/cloud/agent/api/MigrateWithStorageAnswer.java
@@ -25,7 +25,7 @@ public class MigrateWithStorageAnswer extends Answer {
     List<VolumeObjectTO> volumeTos;
 
     public MigrateWithStorageAnswer(MigrateWithStorageCommand cmd, Exception ex) {
-        super(cmd, ex);
+        super(cmd, false, ex.getLocalizedMessage());
         volumeTos = null;
     }
 

http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a74fe8d2/plugins/hypervisors/vmware/src/org/apache/cloudstack/storage/motion/VmwareStorageMotionStrategy.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/vmware/src/org/apache/cloudstack/storage/motion/VmwareStorageMotionStrategy.java
b/plugins/hypervisors/vmware/src/org/apache/cloudstack/storage/motion/VmwareStorageMotionStrategy.java
index 5c9b3af..4668f67 100644
--- a/plugins/hypervisors/vmware/src/org/apache/cloudstack/storage/motion/VmwareStorageMotionStrategy.java
+++ b/plugins/hypervisors/vmware/src/org/apache/cloudstack/storage/motion/VmwareStorageMotionStrategy.java
@@ -105,7 +105,7 @@ public class VmwareStorageMotionStrategy implements DataMotionStrategy
{
             }
         } catch (Exception e) {
             s_logger.error("copy failed", e);
-            errMsg = e.toString();
+            errMsg = e.getLocalizedMessage();
         }
 
         CopyCommandResult result = new CopyCommandResult(null, answer);


Mime
View raw message