undercloud: wire PythonInterpreter to sys.executable
Use sys.executable to wire PythonInterpreter for Undercloud. Change-Id: I34ca723ae982e543ed473d0cc53403a289e61cd3
This commit is contained in:
parent
dcbd17c07a
commit
3bfd9f985c
|
@ -20,6 +20,7 @@ import logging
|
|||
import netaddr
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
from cryptography import x509
|
||||
|
||||
|
@ -363,6 +364,8 @@ def prepare_undercloud_deploy(upgrade=False, no_validations=False,
|
|||
# the users home directory.
|
||||
env_data['UndercloudHomeDir'] = USER_HOME
|
||||
|
||||
env_data['PythonInterpreter'] = sys.executable
|
||||
|
||||
for param_key, param_value in PARAMETER_MAPPING.items():
|
||||
if param_key in CONF.keys():
|
||||
env_data[param_value] = CONF[param_key]
|
||||
|
|
Loading…
Reference in New Issue