Commit 40eaf282 by Stephen Fromm

More cleanup in assemble module for module magic (tm)

parent 8d7f526d
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
import os import os
import os.path import os.path
import sys
import shutil import shutil
import tempfile import tempfile
...@@ -60,10 +59,10 @@ def main(): ...@@ -60,10 +59,10 @@ def main():
dest = os.path.expanduser(module.params['dest']) dest = os.path.expanduser(module.params['dest'])
if not os.path.exists(src): 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): 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)) path = write_temp_file(assemble_from_fragments(src))
pathmd5 = module.md5(path) pathmd5 = module.md5(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment