hobo_deploy: fix support of --extra passed on command line (#6654)
This commit is contained in:
parent
7883432795
commit
725cbb6845
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue