parent
de94863eb1
commit
2b9402dc5c
1 changed files with 3 additions and 1 deletions
|
@ -234,7 +234,9 @@ def main():
|
||||||
|
|
||||||
# do the unpack
|
# do the unpack
|
||||||
try:
|
try:
|
||||||
results = handler.unarchive()
|
res_args['extract_results'] = handler.unarchive()
|
||||||
|
if res_args['extract_results']['rc'] != 0:
|
||||||
|
module.fail_json(msg="failed to unpack %s to %s" % (src, dest), **res_args)
|
||||||
except IOError:
|
except IOError:
|
||||||
module.fail_json(msg="failed to unpack %s to %s" % (src, dest))
|
module.fail_json(msg="failed to unpack %s to %s" % (src, dest))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue