Merge pull request #12448 from ansible/close-module-path

Close module file once we're done reading from it
This commit is contained in:
Brian Coca 2015-09-21 08:46:32 -04:00
commit d851df3b31

View file

@ -156,7 +156,7 @@ def modify_module(module_path, module_args, task_vars=dict(), strip_comments=Fal
# minifier output)
# * Only split into lines and recombine into strings once
# * Cache the modified module? If only the args are different and we do
# that as the last step we could cache sll the work up to that point.
# that as the last step we could cache all the work up to that point.
with open(module_path) as f: