mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-05 02:03:09 +00:00
Merge pull request #686 from sfromm/fixassemble
More cleanup in assemble module for module magic (tm)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user