|
|
@ -318,7 +318,7 @@ def main():
|
|
|
|
module.fail_json(msg="validate must contain %%s: %s" % (validate))
|
|
|
|
module.fail_json(msg="validate must contain %%s: %s" % (validate))
|
|
|
|
(rc,out,err) = module.run_command(validate % src)
|
|
|
|
(rc,out,err) = module.run_command(validate % src)
|
|
|
|
if rc != 0:
|
|
|
|
if rc != 0:
|
|
|
|
module.fail_json(msg="failed to validate: rc:%s error:%s" % (rc,err))
|
|
|
|
module.fail_json(msg="failed to validate", exit_status=rc, stdout=out, stderr=err)
|
|
|
|
if remote_src:
|
|
|
|
if remote_src:
|
|
|
|
_, tmpdest = tempfile.mkstemp(dir=os.path.dirname(dest))
|
|
|
|
_, tmpdest = tempfile.mkstemp(dir=os.path.dirname(dest))
|
|
|
|
shutil.copy2(src, tmpdest)
|
|
|
|
shutil.copy2(src, tmpdest)
|
|
|
|