Merge "Deal with CONF.config_dir correctly"
This commit is contained in:
commit
85eb50e275
|
@ -158,7 +158,8 @@ class PrivContext(object):
|
|||
|
||||
try:
|
||||
if cfg.CONF.config_dir is not None:
|
||||
cmd.extend(['--config-dir', cfg.CONF.config_dir])
|
||||
for cfg_dir in cfg.CONF.config_dir:
|
||||
cmd.extend(['--config-dir', cfg_dir])
|
||||
except cfg.NoSuchOptError:
|
||||
pass
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ class PrivContextTest(testctx.TestContextTestCase):
|
|||
|
||||
def test_helper_command_default_dirtoo(self):
|
||||
self.privsep_conf.config_file = ['/bar.conf', '/baz.conf']
|
||||
self.privsep_conf.config_dir = '/foo.d'
|
||||
self.privsep_conf.config_dir = ['/foo.d']
|
||||
cmd = testctx.context.helper_command('/tmp/sockpath')
|
||||
expected = [
|
||||
'sudo', 'privsep-helper',
|
||||
|
|
Loading…
Reference in New Issue