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

Refactor/composite requests #105

Merged
merged 5 commits into from
Mar 1, 2024
Merged

Conversation

rmocanu-ionos
Copy link
Contributor

What does this fix or implement?

Checklist

  • PR name added as appropriate (e.g. feat:/fix:/doc:/test:/refactor:)
  • Tests added or updated
  • Documentation updated
  • Sonar Cloud Scan
  • Changelog updated and version incremented (label: upcoming release)
  • Github Issue linked if any
  • Jira task updated

ionoscloud.go Outdated
Name: &additionalNicName,
Lan: &additionalLanId_int32,
Ips: nil,
Dhcp: &dhcp_true,
Copy link
Contributor

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")
Copy link
Contributor

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?

Copy link

sonarcloud bot commented Mar 1, 2024

@rmocanu-ionos rmocanu-ionos merged commit 7501213 into master Mar 1, 2024
5 checks passed
@rmocanu-ionos rmocanu-ionos deleted the refactor/composite-requests branch March 1, 2024 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants