[patch] Make sure patch command is found on remote system.
This commit is contained in:
parent
cb848fcd9e
commit
b68c136010
1 changed files with 2 additions and 0 deletions
2
files/patch.py
Normal file → Executable file
2
files/patch.py
Normal file → Executable file
|
@ -141,6 +141,8 @@ def main():
|
|||
p.basedir = path.dirname(p.dest)
|
||||
|
||||
patch_bin = module.get_bin_path('patch')
|
||||
if patch_bin is None:
|
||||
module.fail_json(msg="patch command not found")
|
||||
patch_func = lambda opts: module.run_command("%s %s" % (patch_bin, ' '.join(opts)))
|
||||
|
||||
changed = False
|
||||
|
|
Loading…
Reference in a new issue