mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix deploy_helper join exception on no release.
This commit is contained in:
parent
2e89126af7
commit
64458bc9a1
1 changed files with 4 additions and 1 deletions
|
@ -316,7 +316,10 @@ class DeployHelper(object):
|
||||||
if not self.release and (self.state == 'query' or self.state == 'present'):
|
if not self.release and (self.state == 'query' or self.state == 'present'):
|
||||||
self.release = time.strftime("%Y%m%d%H%M%S")
|
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 {
|
return {
|
||||||
'project_path': self.path,
|
'project_path': self.path,
|
||||||
|
|
Loading…
Add table
Reference in a new issue