]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
dispatcher:rename --config-file to --job-config
authorShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 13 Aug 2020 12:11:11 +0000 (17:41 +0530)
committerShraddha Agrawal <shraddha.agrawal000@gmail.com>
Thu, 13 Aug 2020 12:11:11 +0000 (17:41 +0530)
Signed-off-by: Shraddha Agrawal <shraddha.agrawal000@gmail.com>
scripts/dispatcher.py
teuthology/dispatcher/__init__.py
teuthology/dispatcher/supervisor.py

index bdba50ef1dd0d57ba3437046195771ad6571b73e..db24636964b45f968c96c42921e39826f4fb550d 100644 (file)
@@ -1,6 +1,6 @@
 """
 usage: teuthology-dispatcher --help
-       teuthology-dispatcher --supervisor [-v] --bin-path BIN_PATH --config-file COFNFIG --archive-dir ARC_DIR
+       teuthology-dispatcher --supervisor [-v] --bin-path BIN_PATH --job-config COFNFIG --archive-dir ARC_DIR
        teuthology-dispatcher [-v] --archive-dir ARC_DIR --log-dir LOG_DIR --tube TUBE
 
 Start a dispatcher for the specified tube. Grab jobs from a beanstalk
@@ -20,7 +20,7 @@ standard arguments:
   --archive-dir ARC_DIR          path to archive results in
   --supervisor                   run dispactcher in job supervisor mode
   --bin-path BIN_PATH            teuthology bin path
-  --config-file CONFIG                 file descriptor of job's config file
+  --job-config CONFIG                 file descriptor of job's config file
 """
 
 import docopt
index 3a9443b6e5360a7b321e302ae5ec60f856f50114..df5b7e83c4e14230ea19f9abea4ddeb41d629f4b 100644 (file)
@@ -145,7 +145,7 @@ def main(args):
         with open(job_config_path, 'w') as f:
             yaml.safe_dump(job_config, f, default_flow_style=False)
 
-        run_args.extend(["--config-file", job_config_path])
+        run_args.extend(["--job-config", job_config_path])
         job_proc = subprocess.Popen(run_args)
         log.info('Job supervisor PID: %s', job_proc.pid)
 
index 5bbca9c86487a5f23b1f1fedae6dd35f6a202733..71a0f498ff88f2f0f3c1a4e7f2315df83e54b746 100644 (file)
@@ -25,7 +25,7 @@ def main(args):
     verbose = args["--verbose"]
     archive_dir = args["--archive-dir"]
     teuth_bin_path = args["--bin-path"]
-    config_file_path = args["--config-file"]
+    config_file_path = args["--job-config"]
 
     with open(config_file_path, 'r') as config_file:
         job_config = yaml.safe_load(config_file)