mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* Fix a bug when not defining release on state=clean
* Add changelog fragment
(cherry picked from commit abfbe2a48d
)
Co-authored-by: Ramon de la Fuente <ramon@future500.nl>
This commit is contained in:
parent
e0022f0f5b
commit
0e4b7aef26
2 changed files with 5 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- deploy_helper - allow ``state=clean`` to be used without defining a ``release`` (https://github.com/ansible-collections/community.general/issues/1852).
|
|
@ -408,6 +408,9 @@ class DeployHelper(object):
|
||||||
def remove_unfinished_link(self, path):
|
def remove_unfinished_link(self, path):
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
|
if not self.release:
|
||||||
|
return changed
|
||||||
|
|
||||||
tmp_link_name = os.path.join(path, self.release + '.' + self.unfinished_filename)
|
tmp_link_name = os.path.join(path, self.release + '.' + self.unfinished_filename)
|
||||||
if not self.module.check_mode and os.path.exists(tmp_link_name):
|
if not self.module.check_mode and os.path.exists(tmp_link_name):
|
||||||
changed = True
|
changed = True
|
||||||
|
|
Loading…
Reference in a new issue