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:
Flavio Percoco 2016-11-30 14:06:56 +01:00 committed by Flavio Percoco
parent 722f6629b9
commit cab30bc400
1 changed files with 1 additions and 1 deletions

View File

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