mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
parent
27199dc219
commit
705316e303
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ def main():
|
|||
if module.check_mode:
|
||||
module.exit_json(changed=True)
|
||||
shutil.rmtree(path, ignore_errors=False)
|
||||
except:
|
||||
except Exception, e:
|
||||
module.exit_json(msg="rmtree failed")
|
||||
else:
|
||||
if module.check_mode:
|
||||
|
|
Loading…
Reference in a new issue