Skip to content

Commit

Permalink
Merge pull request #1203 from seokho-son/main
Browse files Browse the repository at this point in the history
HotFix for delete mcis err due to nlb
  • Loading branch information
seokho-son authored Oct 14, 2022
2 parents f4c063b + 50e17de commit 1cd94c5
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 1cd94c5

Please sign in to comment.