ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sneet...@apache.org
Subject git commit: ARGUS-93:Fix Get method to return 1 for not available alias
Date Fri, 10 Oct 2014 03:24:02 GMT
Repository: incubator-argus
Updated Branches:
  refs/heads/master fa1aaa5b7 -> 68ee07f3b


ARGUS-93:Fix Get method to return 1 for not available alias

Signed-off-by: sneethiraj <sneethir@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/68ee07f3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/68ee07f3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/68ee07f3

Branch: refs/heads/master
Commit: 68ee07f3b29e32ada4b74739abe52839f165fa3e
Parents: fa1aaa5
Author: vperiasamy <vperiasamy@hortonworks.com>
Authored: Thu Oct 9 17:11:08 2014 -0400
Committer: sneethiraj <sneethir@apache.org>
Committed: Thu Oct 9 23:23:57 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/com/hortonworks/credentialapi/buildks.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/68ee07f3/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
----------------------------------------------------------------------
diff --git a/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java b/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
index 149eb3b..717fba2 100644
--- a/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
+++ b/credentialbuilder/src/main/java/com/hortonworks/credentialapi/buildks.java
@@ -43,6 +43,8 @@ public class buildks {
 						if(credential!=null){
 							System.out.println(credential);
 							System.exit(0);
+						}else{
+							System.exit(1);
 						}
 					}else{
 						System.out.println(command +" is not supported in current version of CredentialBuilder
API.");
@@ -381,7 +383,7 @@ public class buildks {
 				displaySyntax("get");
 			}
 			if(tempCredential==null){
-				System.out.println("Alias"+ alias +" does not exist!!");
+				System.out.println("Alias "+ alias +" does not exist!!");
 			}
 			}catch(Exception ex){
 				ex.printStackTrace();


Mime
View raw message