Merge "Honor role and networks file constants"
This commit is contained in:
commit
6e89b58bd3
|
@ -524,10 +524,12 @@ class TestDeployUndercloud(TestPluginV1):
|
|||
mock_process_hiera, mock_open, mock_os, mock_yaml_dump,
|
||||
mock_yaml_load, mock_time):
|
||||
|
||||
parsed_args = self.check_parser(self.cmd,
|
||||
['--local-ip', '127.0.0.1/8',
|
||||
'--templates', 'tht_from',
|
||||
'--output-dir', 'tht_to'], [])
|
||||
parsed_args = self.check_parser(
|
||||
self.cmd, ['--local-ip', '127.0.0.1/8',
|
||||
'--templates', 'tht_from',
|
||||
'--output-dir', 'tht_to',
|
||||
'--roles-file', '/roles_file,yaml',
|
||||
'--networks-file', '/networks_file.yaml'], [])
|
||||
dropin = 'tht_from/standalone-stack-vstate-dropin.yaml'
|
||||
self.cmd.output_dir = 'tht_to'
|
||||
self.cmd.tht_render = 'tht_from'
|
||||
|
|
|
@ -1773,15 +1773,11 @@ def jinja_render_files(log, templates, working_dir,
|
|||
templates, 'tools/process-templates.py')
|
||||
args = [python_cmd, process_templates]
|
||||
|
||||
if roles_file:
|
||||
roles_file_path = get_roles_file_path(
|
||||
roles_file, base_path)
|
||||
args.extend(['--roles-data', roles_file_path])
|
||||
roles_file_path = get_roles_file_path(roles_file, base_path)
|
||||
args.extend(['--roles-data', roles_file_path])
|
||||
|
||||
if networks_file:
|
||||
networks_file_path = get_networks_file_path(
|
||||
networks_file, base_path)
|
||||
args.extend(['--network-data', networks_file_path])
|
||||
networks_file_path = get_networks_file_path(networks_file, base_path)
|
||||
args.extend(['--network-data', networks_file_path])
|
||||
|
||||
if base_path:
|
||||
args.extend(['-p', base_path])
|
||||
|
|
Loading…
Reference in New Issue