Skip to content

Commit

Permalink
Merge pull request #642 from ovh/fix_me_installation_template_test
Browse files Browse the repository at this point in the history
fix dedicated_me_installation_template (add inputs attribute & updatedoc )
  • Loading branch information
amstuta authored May 3, 2024
2 parents f993dfe + b445971 commit 73c1182
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions ovh/data_me_installation_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,39 @@ func dataSourceMeInstallationTemplate() *schema.Resource {
Description: "Distribution supports hardware raid configuration through the OVH API",
Deprecated: "This will be deprecated in the next release",
},
"inputs": {
Type: schema.TypeList,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"name": {
Type: schema.TypeString,
Computed: true,
},
"mandatory": {
Type: schema.TypeBool,
Computed: true,
},
"enum": {
Type: schema.TypeList,
Elem: &schema.Schema{Type: schema.TypeString},
Computed: true,
},
"description": {
Type: schema.TypeString,
Computed: true,
},
"type": {
Type: schema.TypeString,
Computed: true,
},
"default": {
Type: schema.TypeString,
Computed: true,
},
},
},
Computed: true,
},
"lvm_ready": {
Type: schema.TypeBool,
Computed: true,
Expand Down
1 change: 1 addition & 0 deletions website/docs/d/me_installation_template.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ The following attributes are exported:
* `family`: Template family type (bsd,linux,solaris,windows).
* `filesystems`: Filesystems available.
* `hard_raid_configuration`: Distribution supports hardware raid configuration through the OVHcloud API.
* `inputs` - Represents the questions of the expected answers in the userMetadata field.
* `lvm_ready` - Whether this template supports LVM.
* `no_partitioning` - Partitioning customization is not available for this OS template.
* `partition_scheme`:
Expand Down

0 comments on commit 73c1182

Please sign in to comment.