From 179f6c8f23d7572ca82f82ac167caafb09e23de2 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 3 Apr 2017 16:15:07 -0700 Subject: [PATCH] Fix deploy_helper join exception on no release. (cherry picked from commit 64458bc9a1ee9837521ccbf775b8cf5762bc3f90) --- lib/ansible/modules/web_infrastructure/deploy_helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/web_infrastructure/deploy_helper.py b/lib/ansible/modules/web_infrastructure/deploy_helper.py index d87caf831cf..976ed05516b 100644 --- a/lib/ansible/modules/web_infrastructure/deploy_helper.py +++ b/lib/ansible/modules/web_infrastructure/deploy_helper.py @@ -316,7 +316,10 @@ class DeployHelper(object): if not self.release and (self.state == 'query' or self.state == 'present'): self.release = time.strftime("%Y%m%d%H%M%S") - new_release_path = os.path.join(releases_path, self.release) + if self.release: + new_release_path = os.path.join(releases_path, self.release) + else: + new_release_path = None return { 'project_path': self.path,