From 9e5229bc5377301fef789abc45638d9f77690183 Mon Sep 17 00:00:00 2001 From: ioito Date: Tue, 21 Dec 2021 19:39:46 +0800 Subject: [PATCH] fix(region): aws eip dissociate --- pkg/multicloud/aws/eip.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/multicloud/aws/eip.go b/pkg/multicloud/aws/eip.go index 72fe29e3bf..ea6be254ee 100644 --- a/pkg/multicloud/aws/eip.go +++ b/pkg/multicloud/aws/eip.go @@ -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) }