cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devd...@apache.org
Subject [2/2] git commit: updated refs/heads/master to a400eec
Date Wed, 10 Sep 2014 06:22:31 GMT
CLOUDSTACK-7503: Fixed few coverity issues


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

Branch: refs/heads/master
Commit: a400eecf6c868c05bacee21689238eeeea1e0ce2
Parents: 4c9507d
Author: Anshul Gangwar <anshul.gangwar@citrix.com>
Authored: Thu Sep 4 14:13:26 2014 +0530
Committer: Devdeep Singh <devdeep@gmail.com>
Committed: Wed Sep 10 11:33:01 2014 +0530

----------------------------------------------------------------------
 .../hypervisor/hyperv/resource/HypervDirectConnectResource.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/a400eecf/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
----------------------------------------------------------------------
diff --git a/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
b/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
index 76f8e75..d0f526f 100644
--- a/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
+++ b/plugins/hypervisors/hyperv/src/com/cloud/hypervisor/hyperv/resource/HypervDirectConnectResource.java
@@ -516,7 +516,7 @@ public class HypervDirectConnectResource extends ServerResourceBase implements
S
             // Only Answer instances are returned by remote agents.
             // E.g. see Response.getAnswers()
             Answer[] result = s_gson.fromJson(ansStr, Answer[].class);
-            String logResult = cleanPassword(StringEscapeUtils.unescapeJava(result.toString()));
+            String logResult = cleanPassword(s_gson.toJson(result));
             s_logger.debug("executeRequest received response " + logResult);
             if (result.length > 0) {
                 return result[0];
@@ -547,7 +547,7 @@ public class HypervDirectConnectResource extends ServerResourceBase implements
S
         }
 
         Answer[] result = s_gson.fromJson(ansStr, Answer[].class);
-        String logResult = cleanPassword(StringEscapeUtils.unescapeJava(result.toString()));
+        String logResult = cleanPassword(s_gson.toJson(result));
         s_logger.debug("executeRequest received response " + logResult);
         if (result.length > 0) {
             return result[0];


Mime
View raw message