mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-04 12:22:45 +00:00
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user