Skip to content

Commit b8757eb

Browse files
committed
fix: default agent group config
1 parent ef43fa9 commit b8757eb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • server/controller/trisolaris/vtap

server/controller/trisolaris/vtap/vtap.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,10 @@ func (v *VTapInfo) GetVTapConfigByNameOrShortUUID(nameOrShortUUID string) *VTapC
520520
if v == nil {
521521
return nil
522522
}
523+
523524
lcuuid, ok := v.vtapGroupNameOrShortIDToLcuuid[nameOrShortUUID]
524-
if !ok {
525-
return nil
525+
if !ok || lcuuid == "" {
526+
lcuuid = v.getDefaultVTapGroup()
526527
}
527528

528529
return v.vtapGroupLcuuidToConfiguration[lcuuid]

0 commit comments

Comments
 (0)