You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by co...@apache.org on 2017/11/22 15:50:11 UTC

[9/9] sentry git commit: Minor fixes

Minor fixes


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

Branch: refs/heads/akolb-cli
Commit: ef81e090782ea9188f66ddfb713b61f6931c074f
Parents: b8cc95a
Author: Colm O hEigeartaigh <co...@apache.org>
Authored: Wed Nov 22 15:49:56 2017 +0000
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Wed Nov 22 15:49:56 2017 +0000

----------------------------------------------------------------------
 .../src/main/java/org/apache/sentry/shell/TopLevelShell.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/ef81e090/sentry-tools/src/main/java/org/apache/sentry/shell/TopLevelShell.java
----------------------------------------------------------------------
diff --git a/sentry-tools/src/main/java/org/apache/sentry/shell/TopLevelShell.java b/sentry-tools/src/main/java/org/apache/sentry/shell/TopLevelShell.java
index 0ddf295..d9952a9 100644
--- a/sentry-tools/src/main/java/org/apache/sentry/shell/TopLevelShell.java
+++ b/sentry-tools/src/main/java/org/apache/sentry/shell/TopLevelShell.java
@@ -226,7 +226,7 @@ public class TopLevelShell implements ShellDependent, Runnable {
       String type) {
     // Check it's a valid type first
     try {
-      TYPE parsedType = TYPE.valueOf(type);
+      TYPE parsedType = parseType(type);
       if (parsedType == TYPE.HIVE) {
         shellCommand = new HiveShellCommand(sentryClient);
       } else {
@@ -236,7 +236,7 @@ public class TopLevelShell implements ShellDependent, Runnable {
         shellCommand = new GenericShellCommand(sentryGenericClient, component, service, converter);
       }
     } catch (IllegalArgumentException ex) {
-      System.out.printf("The %s type value is not an accepted type value\n", type);
+      System.out.printf("%s is not an accepted type value\n", type);
     }
   }
 
@@ -257,7 +257,7 @@ public class TopLevelShell implements ShellDependent, Runnable {
         shellCommand = new GenericShellCommand(sentryGenericClient, component, service, converter);
       }
     } catch (IllegalArgumentException ex) {
-      System.out.printf("The %s type value is not an accepted type value\n", type);
+      System.out.printf("%s is not an accepted type value\n", type);
     }
   }