Merge "Honor role and networks file constants"

This commit is contained in:
Zuul 2021-07-01 02:42:18 +00:00 committed by Gerrit Code Review
commit 6e89b58bd3
2 changed files with 10 additions and 12 deletions

View File

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

View File

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