From 6b6fb383a1269a5bd83cad91fded8c6a4449a15e Mon Sep 17 00:00:00 2001 From: Stephen Fromm Date: Wed, 25 Jul 2012 09:24:10 -0700 Subject: [PATCH] More cleanup in assemble module for module magic (tm) --- assemble | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assemble b/assemble index 58c4ba239b2..c28ef8120ef 100755 --- a/assemble +++ b/assemble @@ -19,7 +19,6 @@ import os import os.path -import sys import shutil import tempfile @@ -60,10 +59,10 @@ def main(): dest = os.path.expanduser(module.params['dest']) if not os.path.exists(src): - fail_json(msg="Source (%s) does not exist" % src) + module.fail_json(msg="Source (%s) does not exist" % src) if not os.path.isdir(src): - fail_json(msg="Source (%s) is not a directory" % src) + module.fail_json(msg="Source (%s) is not a directory" % src) path = write_temp_file(assemble_from_fragments(src)) pathmd5 = module.md5(path)