Skip to content

Commit 8086d5c

Browse files
authored
fix: Fix uppercase exclusion in container compose (#11080)
1 parent a687561 commit 8086d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/app/service/container_compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (u *ContainerService) CreateCompose(req dto.ComposeCreate) error {
209209
_, _ = compose.Down(req.Path)
210210
return err
211211
}
212-
_ = composeRepo.CreateRecord(&model.Compose{Name: req.Name, Path: req.Path})
212+
_ = composeRepo.CreateRecord(&model.Compose{Name: strings.ToLower(req.Name), Path: req.Path})
213213
return nil
214214
}, nil)
215215
_ = taskItem.Execute()

0 commit comments

Comments
 (0)