mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(region): avoid azure secgroup sync removed
This commit is contained in:
@@ -87,7 +87,16 @@ func (self *SClassicVpc) Delete() error {
|
||||
}
|
||||
|
||||
func (self *SClassicVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error) {
|
||||
return []cloudprovider.ICloudSecurityGroup{}, nil
|
||||
secgroups, err := self.region.ListSecgroups()
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "ListSecgroups")
|
||||
}
|
||||
ret := []cloudprovider.ICloudSecurityGroup{}
|
||||
for i := range secgroups {
|
||||
secgroups[i].region = self.region
|
||||
ret = append(ret, &secgroups[i])
|
||||
}
|
||||
return ret, nil
|
||||
}
|
||||
|
||||
func (self *SClassicVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error) {
|
||||
|
||||
Reference in New Issue
Block a user