parent
edc877d6b0
commit
b8347a3144
1 changed files with 1 additions and 1 deletions
|
@ -234,7 +234,7 @@ def main():
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
module.exit_json(changed=True)
|
module.exit_json(changed=True)
|
||||||
shutil.rmtree(path, ignore_errors=False)
|
shutil.rmtree(path, ignore_errors=False)
|
||||||
except:
|
except Exception, e:
|
||||||
module.exit_json(msg="rmtree failed")
|
module.exit_json(msg="rmtree failed")
|
||||||
else:
|
else:
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
|
Loading…
Reference in a new issue