summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Saurin <alvaro.saurin@gmail.com>2016-07-18 16:46:47 +0200
committerAlvaro <alvaro.saurin@gmail.com>2016-10-10 17:40:24 +0200
commit6073b90b233f89394ca907f6579d9103965b1db1 (patch)
tree7be666131008b81312602907f55c9bb8f5dcbe34
parent44a504bcc42e16a6f7d8589fe23f602581838d8a (diff)
downloadterraform-provider-libvirt-6073b90b233f89394ca907f6579d9103965b1db1.tar
terraform-provider-libvirt-6073b90b233f89394ca907f6579d9103965b1db1.tar.gz
go fmt
-rw-r--r--libvirt/network_def.go2
-rw-r--r--libvirt/resource_libvirt_domain.go2
-rw-r--r--libvirt/resource_libvirt_domain_netiface.go40
-rw-r--r--libvirt/utils.go2
4 files changed, 23 insertions, 23 deletions
diff --git a/libvirt/network_def.go b/libvirt/network_def.go
index eb263f08..23217600 100644
--- a/libvirt/network_def.go
+++ b/libvirt/network_def.go
@@ -123,7 +123,7 @@ func newDefNetworkfromLibvirt(network *libvirt.VirNetwork) (defNetwork, error) {
if err != nil {
return defNetwork{}, fmt.Errorf("Error reading libvirt network XML description: %s", err)
}
- return networkDef, nil
+ return networkDef, nil
}
// Creates a network definition with the defaults the provider uses
diff --git a/libvirt/resource_libvirt_domain.go b/libvirt/resource_libvirt_domain.go
index 49eb111d..728c10ca 100644
--- a/libvirt/resource_libvirt_domain.go
+++ b/libvirt/resource_libvirt_domain.go
@@ -5,9 +5,9 @@ import (
"fmt"
"log"
"net"
+ "os"
"strings"
"time"
- "os"
"github.com/davecgh/go-spew/spew"
libvirt "github.com/dmacvicar/libvirt-go"
diff --git a/libvirt/resource_libvirt_domain_netiface.go b/libvirt/resource_libvirt_domain_netiface.go
index 879496b0..40fac691 100644
--- a/libvirt/resource_libvirt_domain_netiface.go
+++ b/libvirt/resource_libvirt_domain_netiface.go
@@ -7,36 +7,36 @@ import (
func networkInterfaceCommonSchema() map[string]*schema.Schema {
return map[string]*schema.Schema{
"network_id": &schema.Schema{
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
- Computed: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ Computed: true,
},
"network_name": &schema.Schema{
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
- Computed: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
+ Computed: true,
},
"bridge": &schema.Schema{
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
},
"vepa": &schema.Schema{
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
},
"macvtap": &schema.Schema{
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
},
"passthrough": &schema.Schema{
- Type: schema.TypeString,
- Optional: true,
- ForceNew: true,
+ Type: schema.TypeString,
+ Optional: true,
+ ForceNew: true,
},
"hostname": &schema.Schema{
Type: schema.TypeString,
diff --git a/libvirt/utils.go b/libvirt/utils.go
index da1502f7..a4110904 100644
--- a/libvirt/utils.go
+++ b/libvirt/utils.go
@@ -7,8 +7,8 @@ import (
"log"
"time"
- libvirt "github.com/dmacvicar/libvirt-go"
"github.com/davecgh/go-spew/spew"
+ libvirt "github.com/dmacvicar/libvirt-go"
)
var diskLetters []rune = []rune("abcdefghijklmnopqrstuvwxyz")