Uploaded image for project: 'OpenShift Java Client'
  1. OpenShift Java Client
  2. OSJC-74

openshift-java-client: ApplicationResource#sshExecCmd is throwing with wrong msg

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • None
    • 2.5.0
    • None

    Description

      The message that is used when throwing an exception is wrong, it's reporting a failure to list forwardable ports where it's failing to execute an ssh-command:

      ApplicationResource#sshExecCmd
      try {
      			session.openChannel("exec");
      			channel = session.openChannel("exec");
      			((ChannelExec) channel).setCommand(command);
      			channel.connect();
      			return sshStream.getLines(channel);
      		} catch (JSchException e) {
      			throw new OpenShiftSSHOperationException(e, "Failed to list forwardable ports for application \"{0}\"",
      					this.getName());
      		} catch (IOException e) {
      			throw new OpenShiftSSHOperationException(e, "Failed to list forwardable ports for application \"{0}\"",
      					this.getName());
      		} finally {
      

      Attachments

        Activity

          People

            cdaley Corey Daley
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: