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,
},
"group": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
"group": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Computed: true,
},
},
}
}
@ -199,10 +199,10 @@ func resourceCloudStackInstanceCreate(d *schema.ResourceData, meta interface{})
p.SetUserdata(ud)
}
// If there is a group supplied, add it to the parameter struct
if group, ok := d.GetOk("group"); ok {
p.SetGroup(group.(string))
}
// If there is a group supplied, add it to the parameter struct
if group, ok := d.GetOk("group"); ok {
p.SetGroup(group.(string))
}
// Create the new instance
r, err := cs.VirtualMachine.DeployVirtualMachine(p)