knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lmc...@apache.org
Subject knox git commit: KNOX-665 - Credential Collectors and Samples Prompting with Double Colons
Date Tue, 02 Feb 2016 23:23:56 GMT
Repository: knox
Updated Branches:
  refs/heads/master 1509453c5 -> 2504be2fa


KNOX-665 - Credential Collectors and Samples Prompting with Double Colons

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

Branch: refs/heads/master
Commit: 2504be2fa3e1d8f6aa96ee6297ca1af2d5077826
Parents: 1509453
Author: Larry McCay <lmccay@hortonworks.com>
Authored: Tue Feb 2 18:23:47 2016 -0500
Committer: Larry McCay <lmccay@hortonworks.com>
Committed: Tue Feb 2 18:23:47 2016 -0500

----------------------------------------------------------------------
 .../gateway/shell/AbstractJavaConsoleCredentialCollector.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/2504be2f/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/AbstractJavaConsoleCredentialCollector.java
----------------------------------------------------------------------
diff --git a/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/AbstractJavaConsoleCredentialCollector.java
b/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/AbstractJavaConsoleCredentialCollector.java
index a976cbe..b993c36 100644
--- a/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/AbstractJavaConsoleCredentialCollector.java
+++ b/gateway-shell/src/main/java/org/apache/hadoop/gateway/shell/AbstractJavaConsoleCredentialCollector.java
@@ -35,7 +35,7 @@ public abstract class AbstractJavaConsoleCredentialCollector extends AbstractCre
       System.exit(1);
     }
   
-    String username = c.readLine(prompt + ": ");
+    String username = c.readLine(prompt);
     value = username;
   
     return value;
@@ -49,7 +49,7 @@ public abstract class AbstractJavaConsoleCredentialCollector extends AbstractCre
       System.exit(1);
     }
   
-    response = c.readPassword(prompt + ": ");
+    response = c.readPassword(prompt);
     value = new String(response);
   
     return value;


Mime
View raw message