Fix dir when copying deployments.yaml

This patch corrects the backport that was done in commit
574ce9450f.

Although the previous backport applied with no conflicts, it did not
actually work semanatically due to a refactoring from a different patch
(f8aa548ca6) that had not been backported
to queens.

The issue is now corrected in this patch by using the correct directory
(tmp_path) when copying deployments.yaml.

Change-Id: I423d48757569f6c8f07078d453486196d3174e7a
This commit is contained in:
James Slagle 2019-08-30 08:46:07 -04:00
parent 574ce9450f
commit b5d347503f
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ class Config(object):
shutil.copyfile(
os.path.join(templates_path, 'deployments.yaml'),
os.path.join(config_dir, 'deployments.yaml'))
os.path.join(tmp_path, 'deployments.yaml'))
# Also copy deployments.yaml to the role dir for temporary backwards
# compatibility until https://review.openstack.org/574474 merges.