-
Notifications
You must be signed in to change notification settings - Fork 3
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
Refactor/composite requests #105
Conversation
ionoscloud.go
Outdated
Name: &additionalNicName, | ||
Lan: &additionalLanId_int32, | ||
Ips: nil, | ||
Dhcp: &dhcp_true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a nitpick but we have SDK util funcs that help us get rid of these variables:
I mean we can do Dhcp: sdkgo.ToPtr(true)
instead of Dhcp: &dhcp_true
ionoscloud.go
Outdated
log.Debugf("Nic ID: %v", d.NicId) | ||
volumes, ok := server.Entities.GetVolumesOk() | ||
if !ok { | ||
return fmt.Errorf("error getting server: d.ServerId is empty") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this error message is wrong, wouldn't this print error getting server: d.ServerId is empty
when in fact there are no volumes on that server?
Quality Gate passedIssues Measures |
What does this fix or implement?
Checklist
feat:
/fix:
/doc:
/test:
/refactor:
)