Commit 66cad54d authored by Patrick TAVARES's avatar Patrick TAVARES

Resolve import name

parent cb1b399f
......@@ -3,7 +3,7 @@ package main
import (
"github.com/hashicorp/terraform/plugin"
"github.com/hashicorp/terraform/terraform"
"terraform-provider-one/one"
"gitlab.ippon.fr/ims/terraform-provider-one/one"
)
func main() {
......
package one
import (
"opennebula-go/client"
"opennebula-go/image"
"opennebula-go/network"
"opennebula-go/oneflow"
"opennebula-go/system"
"opennebula-go/vm"
"gitlab.ippon.fr/ims/opennebula-api/client"
"gitlab.ippon.fr/ims/opennebula-api/image"
"gitlab.ippon.fr/ims/opennebula-api/network"
"gitlab.ippon.fr/ims/opennebula-api/oneflow"
"gitlab.ippon.fr/ims/opennebula-api/system"
"gitlab.ippon.fr/ims/opennebula-api/vm"
)
/*
......
......@@ -2,9 +2,10 @@ package one
import (
"fmt"
"opennebula-go/image"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/image"
"github.com/hashicorp/terraform/helper/schema"
)
......
......@@ -2,9 +2,10 @@ package one
import (
"fmt"
"opennebula-go/vm"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/vm"
"github.com/hashicorp/terraform/helper/schema"
)
......
......@@ -2,9 +2,10 @@ package one
import (
"fmt"
"opennebula-go/image"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/image"
"github.com/hashicorp/terraform/helper/schema"
)
......
package one
import (
"opennebula-go/image"
"gitlab.ippon.fr/ims/opennebula-api/image"
"github.com/hashicorp/terraform/helper/schema"
)
......
......@@ -2,8 +2,9 @@ package one
import (
"fmt"
"opennebula-go/image"
"opennebula-go/vm"
"gitlab.ippon.fr/ims/opennebula-api/image"
"gitlab.ippon.fr/ims/opennebula-api/vm"
"github.com/hashicorp/terraform/helper/schema"
)
......
package one
import (
"opennebula-go/oneflow"
"gitlab.ippon.fr/ims/opennebula-api/oneflow"
"github.com/hashicorp/terraform/helper/schema"
)
......
package one
import (
"opennebula-go/system"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/system"
"github.com/hashicorp/terraform/helper/schema"
)
......
package one
import (
"opennebula-go/vm"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/vm"
"github.com/hashicorp/terraform/helper/schema"
)
......
......@@ -2,10 +2,11 @@ package one
import (
"fmt"
"opennebula-go/image"
"strconv"
"time"
"gitlab.ippon.fr/ims/opennebula-api/image"
"github.com/hashicorp/terraform/helper/schema"
)
......
package one
import (
"opennebula-go/oneflow"
"gitlab.ippon.fr/ims/opennebula-api/oneflow"
"github.com/hashicorp/terraform/helper/schema"
)
......
......@@ -2,7 +2,6 @@ package one
import (
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/terraform"
)
func resourceService() *schema.Resource {
......@@ -24,7 +23,6 @@ func resourceService() *schema.Resource {
func resourceServiceCreate(d *schema.ResourceData, m interface{}) error {
session := m.(*Client).ServiceSession
terraform.New
stID := d.Get("template_id").(string)
id, err := session.InstanciateService(stID)
if err != nil {
......
package one
import (
"opennebula-go/oneflow"
"gitlab.ippon.fr/ims/opennebula-api/oneflow"
"github.com/hashicorp/terraform/helper/schema"
)
......
package one
import (
"opennebula-go/oneflow"
"opennebula-go/util"
"gitlab.ippon.fr/ims/opennebula-api/oneflow"
"gitlab.ippon.fr/ims/opennebula-api/util"
"github.com/hashicorp/terraform/helper/schema"
)
......
......@@ -2,12 +2,13 @@ package one
import (
"fmt"
"opennebula-go/network"
"opennebula-go/util"
"opennebula-go/vm"
"strconv"
"time"
"gitlab.ippon.fr/ims/opennebula-api/network"
"gitlab.ippon.fr/ims/opennebula-api/util"
"gitlab.ippon.fr/ims/opennebula-api/vm"
"github.com/hashicorp/terraform/helper/schema"
//"fmt"
)
......
......@@ -2,10 +2,11 @@ package one
import (
"fmt"
"opennebula-go/vm"
"strconv"
"testing"
"gitlab.ippon.fr/ims/opennebula-api/vm"
"github.com/hashicorp/terraform/helper/resource"
"github.com/hashicorp/terraform/helper/schema"
"github.com/hashicorp/terraform/terraform"
......
......@@ -2,11 +2,12 @@ package one
import (
"fmt"
"opennebula-go/network"
"opennebula-go/util"
"opennebula-go/vm"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/network"
"gitlab.ippon.fr/ims/opennebula-api/util"
"gitlab.ippon.fr/ims/opennebula-api/vm"
"github.com/hashicorp/terraform/helper/schema"
//"fmt"
)
......
package one
import (
"opennebula-go/vm"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/vm"
"github.com/hashicorp/terraform/helper/schema"
)
......
package one
import (
"opennebula-go/network"
"strconv"
"gitlab.ippon.fr/ims/opennebula-api/network"
"github.com/hashicorp/terraform/helper/schema"
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment