Merge "undercloud: python3 support for custom envs"

This commit is contained in:
Zuul 2019-03-19 00:45:46 +00:00 committed by Gerrit Code Review
commit 4e743afd9d
1 changed files with 3 additions and 1 deletions

View File

@ -352,8 +352,10 @@ def _validate_env_files_paths():
LOG.debug(_("Using roles file {0} from {1}").format(roles_file, tht_path))
process_templates = os.path.join(tht_path,
'tools/process-templates.py')
python_interpreter = "/usr/bin/python{}".format(sys.version_info[0])
p = _run_live_command(
['python', process_templates, '--roles-data', roles_file, '--dry-run'],
[python_interpreter, process_templates, '--roles-data', roles_file,
'--dry-run'],
name='process-templates-dry-run', cwd=tht_path, wait=False)
# parse the list for the rendered from j2 file names