mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
remove useless code
This commit is contained in:
@@ -408,9 +408,6 @@ func (self *SRegion) GetInstances(zoneId string, ids []string, offset int, limit
|
||||
var secgroups SSecurityGroupIds
|
||||
for _, s := range instance.SecurityGroups {
|
||||
if s.GroupId != nil {
|
||||
if secgroups.SecurityGroupId == nil {
|
||||
secgroups.SecurityGroupId = []string{}
|
||||
}
|
||||
secgroups.SecurityGroupId = append(secgroups.SecurityGroupId, *s.GroupId)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user