Skip to content

Commit

Permalink
Go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
c0deaddict committed Apr 6, 2020
1 parent fa1e841 commit 5a8a138
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hd
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
github.com/mitchellh/cli v1.0.0 h1:iGBIsUe3+HZ/AD/Vd7DErOt5sU9fa8Uj7A2s1aggv1Y=
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db h1:62I3jR2EmQ4l5rM/4FEfDWcRD+abF5XlKShorW5LRoQ=
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db/go.mod h1:l0dey0ia/Uv7NcFFVbCLtqEBQbrT4OCwCSKTEv6enCw=
github.com/mitchellh/copystructure v1.0.0 h1:Laisrj+bAB6b/yJwB5Bt3ITZhGJdqmxquMKeZ+mmkFQ=
github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main

import (
"github.com/wearespindle/terraform-provider-proxmox/proxmox"
"github.com/hashicorp/terraform-plugin-sdk/plugin"
"github.com/hashicorp/terraform-plugin-sdk/terraform"
"github.com/wearespindle/terraform-provider-proxmox/proxmox"
)

func main() {
Expand Down
38 changes: 19 additions & 19 deletions proxmox/qemu_structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,25 +468,25 @@ func updateDevicesDefaults(

func expandVmQemu(d *schema.ResourceData) pxapi.ConfigQemu {
config := pxapi.ConfigQemu{
Name: d.Get("name").(string),
Description: d.Get("desc").(string),
Pool: d.Get("pool").(string),
Bios: d.Get("bios").(string),
Onboot: d.Get("onboot").(bool),
Boot: d.Get("boot").(string),
BootDisk: d.Get("bootdisk").(string),
Agent: d.Get("agent").(int),
Memory: d.Get("memory").(int),
Balloon: d.Get("balloon").(int),
QemuCores: d.Get("cores").(int),
QemuSockets: d.Get("sockets").(int),
QemuVcpus: d.Get("vcpus").(int),
QemuCpu: d.Get("cpu").(string),
QemuNuma: d.Get("numa").(bool),
Hotplug: d.Get("hotplug").(string),
Scsihw: d.Get("scsihw").(string),
HaState: d.Get("hastate").(string),
QemuOs: d.Get("qemu_os").(string),
Name: d.Get("name").(string),
Description: d.Get("desc").(string),
Pool: d.Get("pool").(string),
Bios: d.Get("bios").(string),
Onboot: d.Get("onboot").(bool),
Boot: d.Get("boot").(string),
BootDisk: d.Get("bootdisk").(string),
Agent: d.Get("agent").(int),
Memory: d.Get("memory").(int),
Balloon: d.Get("balloon").(int),
QemuCores: d.Get("cores").(int),
QemuSockets: d.Get("sockets").(int),
QemuVcpus: d.Get("vcpus").(int),
QemuCpu: d.Get("cpu").(string),
QemuNuma: d.Get("numa").(bool),
Hotplug: d.Get("hotplug").(string),
Scsihw: d.Get("scsihw").(string),
HaState: d.Get("hastate").(string),
QemuOs: d.Get("qemu_os").(string),
// Cloud-init.
CIuser: d.Get("ciuser").(string),
CIpassword: d.Get("cipassword").(string),
Expand Down
3 changes: 1 addition & 2 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func resourceVmQemuCreate(d *schema.ResourceData, meta interface{}) error {
func resourceVmQemuUpdate(d *schema.ResourceData, meta interface{}) error {
pconf := meta.(*providerConfiguration)
pmParallelBegin(pconf)
defer pmParallelEnd(pconf);
defer pmParallelEnd(pconf)

client := pconf.Client
_, _, vmID, err := parseResourceId(d.Id())
Expand Down Expand Up @@ -307,4 +307,3 @@ func diskSizeGB(dcSize interface{}) float64 {
}
return diskSize
}

2 changes: 1 addition & 1 deletion proxmox/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package proxmox
import (
"encoding/json"
"fmt"
"strconv"
pxapi "github.com/Telmate/proxmox-api-go/proxmox"
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
"strconv"
)

func updateDeviceConfDefaults(
Expand Down

0 comments on commit 5a8a138

Please sign in to comment.