Don't disassociate additional CIDRs for shared VPCs

This commit is contained in:
Peter Rifel 2020-10-02 10:12:23 -05:00
parent 25d736a995
commit 931cc48921
No known key found for this signature in database
GPG Key ID: 30DB43602027D941
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ func (_ *VPC) RenderAWS(t *awsup.AWSAPITarget, a, e, changes *VPC) error {
}
func (e *VPC) FindDeletions(c *fi.Context) ([]fi.Deletion, error) {
if fi.StringValue(e.ID) == "" {
if fi.IsNilOrEmpty(e.ID) || fi.BoolValue(e.Shared) {
return nil, nil
}