Skip to content

Commit

Permalink
HotFix for delete mcis err dueto nlb
Browse files Browse the repository at this point in the history
  • Loading branch information
seokho-son committed Oct 14, 2022
1 parent f4c063b commit 50e17de
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/core/mcis/nlb.go
Original file line number Diff line number Diff line change
Expand Up @@ -1004,12 +1004,13 @@ func DelAllNLB(nsId string, mcisId string, subString string, forceFlag string) (
return deletedResources, err
}

if len(resourceIdList) == 0 {
errString := "There is no NLB in " + nsId
err := fmt.Errorf(errString)
common.CBLog.Error(err)
return deletedResources, err
}
// Do not return error when len(resourceIdList) == 0
// if len(resourceIdList) == 0 {
// errString := "There is no NLB in " + nsId
// err := fmt.Errorf(errString)
// common.CBLog.Error(err)
// return deletedResources, err
// }

for _, v := range resourceIdList {
// if subString is provided, check the resourceId contains the subString.
Expand Down

0 comments on commit 50e17de

Please sign in to comment.