Use the absolute path for temp templates
If the template is not in the user's t-h-t root, we should use the absolute path instead of the one in the template since we've already copied these files in the temp dir. Closes-bug: #1646404 Change-Id: I9a575575fc3c0fc78848239fc7b663ca4508fcfa
This commit is contained in:
parent
722f6629b9
commit
cab30bc400
|
@ -191,7 +191,7 @@ class DeployOvercloud(command.Command):
|
|||
% (env_path, rsrc, new_rsrc_path))
|
||||
env_registry[rsrc] = new_rsrc_path
|
||||
else:
|
||||
env_registry[rsrc] = rsrc_path
|
||||
env_registry[rsrc] = abs_rsrc_path
|
||||
env_map['resource_registry'] = env_registry
|
||||
f_name = os.path.basename(os.path.splitext(abs_env_path)[0])
|
||||
with tempfile.NamedTemporaryFile(dir=tht_root,
|
||||
|
|
Loading…
Reference in New Issue