Skip to content

Commit

Permalink
Detach ENI before deleting
Browse files Browse the repository at this point in the history
(cherry picked from commit 081539e)
  • Loading branch information
uthark authored and mogren committed Jul 31, 2019
1 parent 6ba7d76 commit 65873cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/awsutils/awsutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ func (cache *EC2InstanceMetadataCache) AllocENI(useCustomCfg bool, sg []*string,
awsAPILatency.WithLabelValues("ModifyNetworkInterfaceAttribute", fmt.Sprint(err != nil)).Observe(msSince(start))
if err != nil {
awsAPIErrInc("ModifyNetworkInterfaceAttribute", err)
err := cache.deleteENI(eniID)
err := cache.FreeENI(eniID)
if err != nil {
awsUtilsErrInc("ENICleanupUponModifyNetworkErr", err)
}
Expand Down

0 comments on commit 65873cf

Please sign in to comment.