d2r commented on a change in pull request #2930: STORM-3274: Migrates storm CLI 
to using argparse making documentation…
URL: https://github.com/apache/storm/pull/2930#discussion_r253921047
 
 

 ##########
 File path: bin/storm.py
 ##########
 @@ -156,49 +95,92 @@ def get_classpath(extrajars, daemon=True, client=False):
     ret.extend(get_wildcard_dir(os.path.join(STORM_DIR, "extlib")))
     if daemon:
         ret.extend(get_wildcard_dir(os.path.join(STORM_DIR, "extlib-daemon")))
-    if STORM_EXT_CLASSPATH != None:
+    if STORM_EXT_CLASSPATH:
         ret.append(STORM_EXT_CLASSPATH)
-    if daemon and STORM_EXT_CLASSPATH_DAEMON != None:
+    if daemon and STORM_EXT_CLASSPATH_DAEMON:
         ret.append(STORM_EXT_CLASSPATH_DAEMON)
     ret.extend(extrajars)
-    return normclasspath(os.pathsep.join(ret))
+    return NORMAL_CLASS_PATH(os.pathsep.join(ret))
 
-def confvalue(name, extrapaths, daemon=True):
-    global CONFFILE
-    command = [
-        JAVA_CMD, "-client", get_config_opts(), "-Dstorm.conf.file=" + 
CONFFILE,
-        "-cp", get_classpath(extrapaths, daemon), 
"org.apache.storm.command.ConfigValue", name
-    ]
-    p = sub.Popen(command, stdout=sub.PIPE)
-    output, errors = p.communicate()
-    # python 3
-    if not isinstance(output, str):
 
 Review comment:
   Yes this has been resolved already by keeping the needed checks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to