mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #12967 from ioito/hotfix/qx-aws-eip-dissociate
fix(region): aws eip dissociate
This commit is contained in:
@@ -167,9 +167,6 @@ func (self *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error {
|
||||
}
|
||||
|
||||
func (self *SEipAddress) Dissociate() error {
|
||||
if len(self.InstanceId) > 0 {
|
||||
return self.region.DissociateEip(self.InstanceId)
|
||||
}
|
||||
return self.region.DissociateEip(self.AssociationId)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user