Merge pull request #12325 from rainzm/sshproxy/fix

fix(region): avoid duplicate playbook names
This commit is contained in:
Zexi Li
2021-09-28 19:58:01 +08:00
committed by GitHub
+1 -1
View File
@@ -491,7 +491,7 @@ func (guest *SGuest) PerformMakeSshable(
cliSess := auth.GetSession(ctx, userCred, "", "")
pbId := ""
pbName := "make-sshable-" + guest.Name
pbName := "make-sshable-" + guest.Id
pbModel, err := mcclient_modules.AnsiblePlaybooks.UpdateOrCreatePbModel(
ctx, cliSess, pbId, pbName, pb,
)