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