From 190be5e8ef7b956434f1c210d3c26c0d0ca7937b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Schneider?= Date: Mon, 30 Mar 2015 18:07:56 +0200 Subject: [PATCH] hobo_deploy: fix hobo_deploy to support extra in config file (#6654) --- wcs/ctl/check_hobos.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wcs/ctl/check_hobos.py b/wcs/ctl/check_hobos.py index aa86d32..27ba554 100644 --- a/wcs/ctl/check_hobos.py +++ b/wcs/ctl/check_hobos.py @@ -37,7 +37,12 @@ class CmdCheckHobos(Command): import publisher self.base_options = base_options - publisher.WcsPublisher.configure(self.config, sub_options.extra) + if sub_options.extra: + if not self.config.has_section('extra'): + self.config.add_section('extra') + for i, extra in enumerate(sub_options.extra): + self.config.set("extra", "cmd_line_extra_%d" % i, extra) + publisher.WcsPublisher.configure(self.config) pub = publisher.WcsPublisher.create_publisher() global_app_dir = pub.app_dir -- 2.1.4