Updated to use forked azure-sdk-for-go package

This commit is contained in:
Sander van Harmelen 2015-05-12 08:30:47 +02:00
parent d45f8ac52a
commit 123cd9239c
4 changed files with 143 additions and 144 deletions

View File

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/Azure/azure-sdk-for-go/management"
"github.com/svanharmelen/azure-sdk-for-go/management"
)
// Config is the configuration structure used to instantiate a

View File

@ -6,13 +6,13 @@ import (
"log"
"strings"
"github.com/Azure/azure-sdk-for-go/management"
"github.com/Azure/azure-sdk-for-go/management/hostedservice"
"github.com/Azure/azure-sdk-for-go/management/osimage"
"github.com/Azure/azure-sdk-for-go/management/virtualmachine"
"github.com/Azure/azure-sdk-for-go/management/vmutils"
"github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/schema"
"github.com/svanharmelen/azure-sdk-for-go/management"
"github.com/svanharmelen/azure-sdk-for-go/management/hostedservice"
"github.com/svanharmelen/azure-sdk-for-go/management/osimage"
"github.com/svanharmelen/azure-sdk-for-go/management/virtualmachine"
"github.com/svanharmelen/azure-sdk-for-go/management/vmutils"
)
const (
@ -166,7 +166,6 @@ func resourceAzureInstance() *schema.Resource {
}
func resourceAzureInstanceCreate(d *schema.ResourceData, meta interface{}) (err error) {
/*
mc := meta.(*management.Client)
name := d.Get("name").(string)
@ -306,7 +305,7 @@ func resourceAzureInstanceCreate(d *schema.ResourceData, meta interface{}) (err
"Error adding role to subnet %s for instance %s: %s", d.Get("subnet").(string), name, err)
}
options := &virtualmachine.CreateDeploymentOptions{
options := virtualmachine.CreateDeploymentOptions{
Subnet: d.Get("subnet").(string),
VirtualNetworkName: d.Get("virtual_network").(string),
}
@ -324,7 +323,7 @@ func resourceAzureInstanceCreate(d *schema.ResourceData, meta interface{}) (err
}
d.SetId(name)
*/
return resourceAzureInstanceRead(d, meta)
}

View File

@ -5,9 +5,9 @@ import (
"log"
"strconv"
"github.com/Azure/azure-sdk-for-go/management"
"github.com/Azure/azure-sdk-for-go/management/networksecuritygroup"
"github.com/hashicorp/terraform/helper/schema"
"github.com/svanharmelen/azure-sdk-for-go/management"
"github.com/svanharmelen/azure-sdk-for-go/management/networksecuritygroup"
)
func resourceAzureSecurityGroup() *schema.Resource {

View File

@ -5,10 +5,10 @@ import (
"log"
"strings"
"github.com/Azure/azure-sdk-for-go/management"
"github.com/Azure/azure-sdk-for-go/management/virtualnetwork"
"github.com/hashicorp/terraform/helper/schema"
"github.com/mitchellh/mapstructure"
"github.com/svanharmelen/azure-sdk-for-go/management"
"github.com/svanharmelen/azure-sdk-for-go/management/virtualnetwork"
)
const (