diff --git a/management/hostedservice/client.go b/management/hostedservice/client.go index dad8c449fe..cedaf1953e 100644 --- a/management/hostedservice/client.go +++ b/management/hostedservice/client.go @@ -102,8 +102,8 @@ func (h HostedServiceClient) GetHostedService(name string) (HostedService, error return hostedService, nil } -func (h HostedServiceClient) ListHostedServices() (ListHostedServiceResponse, error) { - var response ListHostedServiceResponse +func (h HostedServiceClient) ListHostedServices() (ListHostedServicesResponse, error) { + var response ListHostedServicesResponse data, err := h.client.SendAzureGetRequest(azureHostedServiceListURL) if err != nil { @@ -111,7 +111,6 @@ func (h HostedServiceClient) ListHostedServices() (ListHostedServiceResponse, er } err = xml.Unmarshal(data, &response) - return response, err } diff --git a/management/hostedservice/entities.go b/management/hostedservice/entities.go index d8d0853df0..007ad18283 100644 --- a/management/hostedservice/entities.go +++ b/management/hostedservice/entities.go @@ -54,6 +54,6 @@ const ( CertificateFormatCer = CertificateFormat("cer") ) -type ListHostedServiceResponse struct { +type ListHostedServicesResponse struct { HostedServices []HostedService `xml:"HostedService"` }