From 772e6f4057f1fc47214442dd1c41da082bacbc0c Mon Sep 17 00:00:00 2001 From: Richard Scothern Date: Mon, 14 Mar 2016 11:18:27 -0700 Subject: [PATCH] Update missing blob error checking with latest Azure API Signed-off-by: Richard Scothern --- registry/storage/driver/azure/azure.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry/storage/driver/azure/azure.go b/registry/storage/driver/azure/azure.go index 70771375..b06b0876 100644 --- a/registry/storage/driver/azure/azure.go +++ b/registry/storage/driver/azure/azure.go @@ -382,8 +382,8 @@ func (d *driver) listBlobs(container, virtPath string) ([]string, error) { } func is404(err error) bool { - statusCodeErr, ok := err.(azure.UnexpectedStatusCodeError) - return ok && statusCodeErr.Got() == http.StatusNotFound + statusCodeErr, ok := err.(azure.AzureStorageServiceError) + return ok && statusCodeErr.StatusCode == http.StatusNotFound } type writer struct {