Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: return err after roll back #641

Merged
merged 1 commit into from
Jun 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@

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

Check warning on line 80 in pkg/aliyun/client/ecs.go

View check run for this annotation

Codecov / codecov/patch

pkg/aliyun/client/ecs.go#L80

Added line #L80 was not covered by tests
}

return FromCreateResp(resp), err
Expand Down Expand Up @@ -281,6 +282,7 @@
})
if err != nil {
rollBackFunc()
return nil, err

Check warning on line 285 in pkg/aliyun/client/ecs.go

View check run for this annotation

Codecov / codecov/patch

pkg/aliyun/client/ecs.go#L285

Added line #L285 was not covered by tests
}

ips, err := ip.ToIPAddrs(resp.AssignedPrivateIpAddressesSet.PrivateIpSet.PrivateIpAddress)
Expand Down Expand Up @@ -362,6 +364,7 @@
})
if err != nil {
rollBackFunc()
return nil, err

Check warning on line 367 in pkg/aliyun/client/ecs.go

View check run for this annotation

Codecov / codecov/patch

pkg/aliyun/client/ecs.go#L367

Added line #L367 was not covered by tests
}

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