hobo_deploy: fix support of --extra passed on command line (#6654)

This commit is contained in:
Jérôme Schneider 2015-03-30 18:07:56 +02:00 committed by Frédéric Péters
parent 7883432795
commit 725cbb6845
1 changed files with 6 additions and 1 deletions

View File

@ -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