Skip to content

Commit

Permalink
Fix app name
Browse files Browse the repository at this point in the history
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
  • Loading branch information
torchiaf committed Dec 28, 2023
1 parent f02106c commit 9c606b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/editor/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (editor Editor) deploymentCreate(service *v1.Service) *corev1.Deployment {

func New(user models.User) Editor {
return Editor{
id: fmt.Sprintf("%s-%s", c.App, user.Name),
id: fmt.Sprintf("%s-%s", c.App.Name, user.Name),
namespace: c.App.Namespace,
label: fmt.Sprintf("app.code-editor/path=%s", user.Path),
path: user.Path,
Expand Down Expand Up @@ -363,7 +363,7 @@ func (editor Editor) Config(gitCmd string) error {
}

func (editor Editor) Destroy(user models.User) error {
name := fmt.Sprintf("%s-%s", c.App, user.Name)
name := fmt.Sprintf("%s-%s", c.App.Name, user.Name)

return deleteDeployment(user, name)
}

0 comments on commit 9c606b9

Please sign in to comment.