fixed formatting

This commit is contained in:
Jeff LaPlante 2016-04-05 09:21:23 -07:00
parent cf607e8a58
commit ba4ec0097a
1 changed files with 9 additions and 9 deletions

View File

@ -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)