fixed formatting
This commit is contained in:
parent
cf607e8a58
commit
ba4ec0097a
|
@ -94,11 +94,11 @@ func resourceCloudStackInstance() *schema.Resource {
|
||||||
Default: false,
|
Default: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
"group": &schema.Schema{
|
"group": &schema.Schema{
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -199,10 +199,10 @@ func resourceCloudStackInstanceCreate(d *schema.ResourceData, meta interface{})
|
||||||
p.SetUserdata(ud)
|
p.SetUserdata(ud)
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there is a group supplied, add it to the parameter struct
|
// If there is a group supplied, add it to the parameter struct
|
||||||
if group, ok := d.GetOk("group"); ok {
|
if group, ok := d.GetOk("group"); ok {
|
||||||
p.SetGroup(group.(string))
|
p.SetGroup(group.(string))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the new instance
|
// Create the new instance
|
||||||
r, err := cs.VirtualMachine.DeployVirtualMachine(p)
|
r, err := cs.VirtualMachine.DeployVirtualMachine(p)
|
||||||
|
|
Loading…
Reference in New Issue