Skip to content

Commit 1b853be

Browse files
fix: error on check preventing multiple apps (#26)
1 parent ff96755 commit 1b853be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apploader/internal/cvm/cvm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (cbm *cvmBootManager) loadConfig() (*CvmBootSequence, error) {
6060
return nil, fmt.Errorf("unmarshal %s failed, error: %s", cbm.config.ConfigPath, err.Error())
6161
}
6262
// validate cvmBootSequence, we want no more than one app
63-
if len(cvmBootSequence.AppInfo) >= 1 {
63+
if len(cvmBootSequence.AppInfo) > 1 {
6464
return nil, fmt.Errorf("only one application is supported, but got %d", len(cvmBootSequence.AppInfo))
6565
}
6666
return cvmBootSequence, nil

0 commit comments

Comments
 (0)