Merge pull request #11051 from rainzm/automated-cherry-pick-of-#11050-upstream-release-3.7

Automated cherry pick of #11050: fix(ansibleserver): correct playbook path and role path
This commit is contained in:
Zexi Li
2021-05-13 11:55:46 +08:00
committed by GitHub
+1 -1
View File
@@ -84,7 +84,7 @@ func (r runnable) Run(ctx context.Context) (err error) {
// write out playbook
playbook := r.GetPlaybookPath()
if len(playbook) == 0 {
playbook := filepath.Join(tmpdir, "playbook")
playbook = filepath.Join(tmpdir, "playbook")
err = ioutil.WriteFile(playbook, []byte(r.GetPlaybook()), os.FileMode(0600))
if err != nil {
err = errors.Wrapf(err, "writing playbook %s", playbook)