mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
fix(ansibleserver): correct playbook path
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user