From 8eeafc9214fedce838f948f3bb9c90202d0bcf7a Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 6 Sep 2016 15:03:45 -0600 Subject: [PATCH] run: Allow a job to override config.use_shaman Signed-off-by: Zack Cerza --- teuthology/run.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/teuthology/run.py b/teuthology/run.py index 4f4646fd1..756fc25c8 100644 --- a/teuthology/run.py +++ b/teuthology/run.py @@ -356,6 +356,11 @@ def main(args): if os_version: config["os_version"] = os_version + # If the job has a 'use_shaman' key, use that value to override the global + # config's value. + if config.get('use_shaman') is not None: + teuth_config.use_shaman = config['use_shaman'] + # create a FakeNamespace instance that mimics the old argparse way of doing # things we do this so we can pass it to run_tasks without porting those # tasks to the new way of doing things right now -- 2.47.3