Update for breaking change to Azure library.

vmImageClient.ListVirtualMachineImages takes a parameter as of
68d50cb53a73edfeb7f17f5e86cdc8eb359a9528 in Azure/azure-sdk-for-go .

Passing in a parameters object whose members are all empty strings seems
to restore the previous behavior.
This commit is contained in:
Martin Atkins 2015-12-13 14:59:24 -08:00
parent 0f588fcc53
commit e25a0cafa2
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ func retrieveImageDetails(
func retrieveVMImageDetails(
vmImageClient virtualmachineimage.Client,
label string) (func(*virtualmachine.Role) error, string, []string, error) {
imgs, err := vmImageClient.ListVirtualMachineImages()
imgs, err := vmImageClient.ListVirtualMachineImages(virtualmachineimage.ListParameters{})
if err != nil {
return nil, "", nil, fmt.Errorf("Error retrieving image details: %s", err)
}