Skip to content

Commit

Permalink
Merge pull request #673 from l1b0k/release-1.8
Browse files Browse the repository at this point in the history
backport the error handle
  • Loading branch information
l1b0k authored Aug 29, 2024
2 parents 252fbca + bc32481 commit a33d624
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/aliyun/client/ecs.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ func (a *OpenAPI) CreateNetworkInterface(ctx context.Context, opts ...CreateNetw

if err != nil {
rollBackFunc()
return nil, err
}

return FromCreateResp(resp), err
Expand Down Expand Up @@ -281,6 +282,7 @@ func (a *OpenAPI) AssignPrivateIPAddress(ctx context.Context, opts ...AssignPriv
})
if err != nil {
rollBackFunc()
return nil, err
}

ips, err := ip.ToIPAddrs(resp.AssignedPrivateIpAddressesSet.PrivateIpSet.PrivateIpAddress)
Expand Down Expand Up @@ -362,6 +364,7 @@ func (a *OpenAPI) AssignIpv6Addresses(ctx context.Context, opts ...AssignIPv6Add
})
if err != nil {
rollBackFunc()
return nil, err
}

ips, err := ip.ToIPAddrs(resp.Ipv6Sets.Ipv6Address)
Expand Down

0 comments on commit a33d624

Please sign in to comment.