mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-31 02:38:07 +08:00
fix(region): avoid panic (#22118)
This commit is contained in:
@@ -69,7 +69,7 @@ func (self *SecurityGroupRuleUpdateTask) OnInit(ctx context.Context, obj db.ISta
|
||||
}
|
||||
|
||||
if len(rule.ExternalId) == 0 {
|
||||
self.taskFailed(ctx, secgroup, errors.Wrapf(err, "empty external id"))
|
||||
self.taskFailed(ctx, secgroup, errors.Errorf("empty external id"))
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user