fix: Fix uppercase exclusion in container compose (#11080)

This commit is contained in:
ssongliu 2025-11-26 15:53:24 +08:00 committed by GitHub
parent a6875614f6
commit 8086d5cecb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -209,7 +209,7 @@ func (u *ContainerService) CreateCompose(req dto.ComposeCreate) error {
_, _ = compose.Down(req.Path)
return err
}
_ = composeRepo.CreateRecord(&model.Compose{Name: req.Name, Path: req.Path})
_ = composeRepo.CreateRecord(&model.Compose{Name: strings.ToLower(req.Name), Path: req.Path})
return nil
}, nil)
_ = taskItem.Execute()