Updated Branches:
  refs/heads/sqoop2 91b121cca -> 8c19c8c33

SQOOP-1147: Sqoop2: show framework function does not behave as expected

(Raghav Kumar Gautam via Jarek Jarcec Cecho)


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

Branch: refs/heads/sqoop2
Commit: 8c19c8c3378db86a22a7c2f7ab205ad2312d1645
Parents: 91b121c
Author: Jarek Jarcec Cecho <[email protected]>
Authored: Mon Jul 22 15:09:22 2013 -0700
Committer: Jarek Jarcec Cecho <[email protected]>
Committed: Mon Jul 22 15:09:22 2013 -0700

----------------------------------------------------------------------
 .../java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/8c19c8c3/client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java
----------------------------------------------------------------------
diff --git 
a/client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java 
b/client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java
index d37b73a..58b2c6e 100644
--- 
a/client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java
+++ 
b/client/src/main/java/org/apache/sqoop/client/shell/ShowFrameworkFunction.java
@@ -35,7 +35,7 @@ public class ShowFrameworkFunction extends SqoopFunction {
   }
 
   public Object executeFunction(CommandLine line) {
-    if (line.getArgs().length != 1) {
+    if (line.getArgs().length != 0) {
       printlnResource(Constants.RES_SHOW_FRAMEWORK_USAGE);
       return null;
     }

Reply via email to