Alon Bar-Lev has uploaded a new change for review.

Change subject: utils: ssh: don't add ssh command to exception
......................................................................

utils: ssh: don't add ssh command to exception

It results in a long unclear message to the user.

Change-Id: If4e221b423a46dcaf01ca540a4671caeedb90dce
Signed-off-by: Alon Bar-Lev <alo...@redhat.com>
---
M 
backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/SSHClient.java
1 file changed, 2 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/68/9168/1

diff --git 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/SSHClient.java
 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/SSHClient.java
index 0993a4e..faf64ee 100644
--- 
a/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/SSHClient.java
+++ 
b/backend/manager/modules/utils/src/main/java/org/ovirt/engine/core/utils/ssh/SSHClient.java
@@ -500,10 +500,9 @@
             if ((stat & ClientChannel.EXIT_STATUS) != 0 && 
channel.getExitStatus() != 0) {
                 throw new IOException(
                     String.format(
-                        "Command returned failure code %2$d during SSH session 
'%1$s' '%3$s'",
+                        "Command returned failure code %2$d during SSH session 
'%1$s'",
                         this.getDisplayHost(),
-                        channel.getExitStatus(),
-                        command
+                        channel.getExitStatus()
                     )
                 );
             }


--
To view, visit http://gerrit.ovirt.org/9168
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If4e221b423a46dcaf01ca540a4671caeedb90dce
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Alon Bar-Lev <alo...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to