This is an automated email from the ASF dual-hosted git repository.

chhsiao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit dbdd7db4609a2fb4b2afd72f2b9195b1f3c7d3e4
Author: Chun-Hung Hsiao <[email protected]>
AuthorDate: Wed Aug 22 16:14:08 2018 -0700

    Fixed a bug in `generate-endpoint-help.py`.
    
    Review: https://reviews.apache.org/r/68477
---
 support/generate-endpoint-help.py         | 2 +-
 support/python3/generate-endpoint-help.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/generate-endpoint-help.py 
b/support/generate-endpoint-help.py
index 54b5408..37c4b58 100755
--- a/support/generate-endpoint-help.py
+++ b/support/generate-endpoint-help.py
@@ -387,7 +387,7 @@ def main():
     # This is useful for tracking the master or agent subprocesses so
     # that we can kill them if the script exits prematurely.
     subproc = Subprocess()
-    atexit.register(subproc.cleanup())
+    atexit.register(subproc.cleanup)
     subproc.current = start_master(options)
     master_help = get_help(HOST_IP, MASTER_PORT)
     subproc.current.kill()
diff --git a/support/python3/generate-endpoint-help.py 
b/support/python3/generate-endpoint-help.py
index 43bf3b0..6214d2e 100755
--- a/support/python3/generate-endpoint-help.py
+++ b/support/python3/generate-endpoint-help.py
@@ -385,7 +385,7 @@ def main():
     # This is useful for tracking the master or agent subprocesses so
     # that we can kill them if the script exits prematurely.
     subproc = Subprocess()
-    atexit.register(subproc.cleanup())
+    atexit.register(subproc.cleanup)
     subproc.current = start_master(options)
     master_help = get_help(HOST_IP, MASTER_PORT)
     subproc.current.kill()

Reply via email to