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

new resources/datasources: me_installation_template* #103

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

yanndegat
Copy link
Collaborator

  • datasource/ovh_me_installation_templates
  • datasource/ovh_me_installation_template
  • resource/ovh_me_installation_template
  • resource/ovh_me_installation_template_partition_scheme
  • resource/ovh_me_installation_template_partition_scheme_hardware_raid
  • resource/ovh_me_installation_template_partition_scheme_partition

@ghost ghost added the size/XXL label Nov 15, 2019
@yanndegat
Copy link
Collaborator Author

/hold

missing:

  • testaccs on updates
  • importers + test
  • docs

@yanndegat
Copy link
Collaborator Author

ping
@gaotan
@pgaxatte

@yanndegat yanndegat force-pushed the dev/ovh_me_installation_template branch from 665f75c to 665169c Compare November 15, 2019 11:09
Copy link
Member

@pgaxatte pgaxatte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two small issues to fix

templateName := d.Get("template_name").(string)

opts := (&PartitionSchemeCreateOrUpdateOpts{}).FromResource(d)
endpoint := fmt.Sprintf("/me/installationTemplate/%s/partitionScheme", templateName)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing url.PathEscape


opts := (&InstallationTemplateCreateOpts{}).FromResource(d)

endpoint := fmt.Sprintf("/me/installationTemplate")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fmt.Sprintf is not needed here

@pgaxatte
Copy link
Member

Also you're missing the documentation ;)

- datasource/ovh_me_installation_templates
- datasource/ovh_me_installation_template
- resource/ovh_me_installation_template
- resource/ovh_me_installation_template_partition_scheme
- resource/ovh_me_installation_template_partition_scheme_hardware_raid
- resource/ovh_me_installation_template_partition_scheme_partition
@yanndegat yanndegat force-pushed the dev/ovh_me_installation_template branch from 665169c to 27fc189 Compare December 13, 2019 14:36
@ghost ghost added the Type: Documentation label Dec 13, 2019
@yanndegat yanndegat merged commit ef7a6d2 into ovh:master Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants