Skip to content

Commit

Permalink
F #300: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
treywelsh authored and frousselet committed Nov 28, 2022
1 parent fdf909e commit 98d97f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions opennebula/resource_opennebula_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ func resourceOpennebulaHost() *schema.Resource {
Schema: map[string]*schema.Schema{
"virtualization": {
Type: schema.TypeString,
Required: true,
Optional: true,
Description: "Virtualization driver",
},
"information": {
Type: schema.TypeString,
Required: true,
Optional: true,
Description: "Information driver",
},
},
Expand All @@ -82,12 +82,12 @@ func resourceOpennebulaHost() *schema.Resource {
Schema: map[string]*schema.Schema{
"cpu": {
Type: schema.TypeInt,
Required: true,
Optional: true,
Description: "Maximum allocatable CPU capacity in number of cores multiplied by 100",
},
"memory": {
Type: schema.TypeInt,
Required: true,
Optional: true,
Description: "Maximum allocatable memory capacity in KB",
},
},
Expand Down Expand Up @@ -317,7 +317,6 @@ func resourceOpennebulaHostRead(ctx context.Context, d *schema.ResourceData, met

custom := d.Get("custom").(*schema.Set).List()
if len(custom) > 0 {
fmt.Printf("[INFO] custom configured, read...")

d.Set("custom", []map[string]interface{}{
{
Expand Down
1 change: 0 additions & 1 deletion website/docs/r/host.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ The following arguments are supported:
* `custom` - (Optional) If `type="custom"` this section should be defined, see [Custom](#custom) section for details.
* `overcommit` - (Optional) This section allow to increase the allocatable capacity of the host. See [Overcommit](#overcommit)
* `tags` - (Optional) Host tags (Key = value)
* `timeout` - (Deprecated) Timeout (in Minutes) for Host availability. Defaults to 10 minutes.

### Custom

Expand Down

0 comments on commit 98d97f3

Please sign in to comment.