diff --git a/builtin/providers/azure/resource_azure_instance.go b/builtin/providers/azure/resource_azure_instance.go index 5ade3b55d..cf20e8218 100644 --- a/builtin/providers/azure/resource_azure_instance.go +++ b/builtin/providers/azure/resource_azure_instance.go @@ -650,8 +650,7 @@ func retrieveOSImageDetails( } if img.MediaLink == "" { if storage == "" { - return nil, "", nil, - PlatformStorageError + return nil, "", nil, PlatformStorageError } img.MediaLink = fmt.Sprintf(osDiskBlobStorageURL, storage, name) }