Merge pull request #905 from hashicorp/fix-build-upstream-azure-sdk-change

fix build: upstream azure client change
This commit is contained in:
Paul Hinze 2015-02-01 10:44:37 -06:00
commit 86a6008f1b
1 changed files with 3 additions and 2 deletions

View File

@ -5,9 +5,10 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/MSOpenTech/azure-sdk-for-go/clients/hostedServiceClient"
"github.com/MSOpenTech/azure-sdk-for-go/clients/vmClient"
"github.com/hashicorp/terraform/helper/hashcode" "github.com/hashicorp/terraform/helper/hashcode"
"github.com/hashicorp/terraform/helper/schema" "github.com/hashicorp/terraform/helper/schema"
"github.com/MSOpenTech/azure-sdk-for-go/clients/vmClient"
) )
func resourceVirtualMachine() *schema.Resource { func resourceVirtualMachine() *schema.Resource {
@ -220,7 +221,7 @@ func resourceVirtualMachineDelete(d *schema.ResourceData, meta interface{}) erro
} }
log.Printf("[DEBUG] Deleting Azure Hosted Service: %s", d.Id()) log.Printf("[DEBUG] Deleting Azure Hosted Service: %s", d.Id())
if err := vmClient.DeleteHostedService(d.Id()); err != nil { if err := hostedServiceClient.DeleteHostedService(d.Id()); err != nil {
return fmt.Errorf("Error deleting Azure hosted service: %s", err) return fmt.Errorf("Error deleting Azure hosted service: %s", err)
} }