Revert "fix build: upstream azure client change"

This reverts commit 6da9f04c10.
This commit is contained in:
Paul Hinze 2015-02-13 12:52:56 -06:00
parent edaed1fa77
commit 0b67ac3c49
1 changed files with 2 additions and 3 deletions

View File

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