File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 77 "log"
88 "net/http"
99 "os/exec"
10+ "strings"
1011 "sync"
1112 "time"
1213
@@ -103,7 +104,7 @@ func (aa *DatabricksClient) configureWithAzureCLI(ctx context.Context) (func(*ht
103104 // verify that Azure CLI is authenticated
104105 _ , err := cli .GetTokenFromCLI (armDatabricksResourceID )
105106 if err != nil {
106- if err .Error () == "Invoking Azure CLI failed with the following error: " {
107+ if strings . Contains ( err .Error (), "executable file not found" ) {
107108 return nil , fmt .Errorf ("most likely Azure CLI is not installed. " +
108109 "See https://docs.microsoft.com/en-us/cli/azure/?view=azure-cli-latest for details" )
109110 }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ require (
77 github.com/Azure/go-autorest/autorest v0.11.24
88 github.com/Azure/go-autorest/autorest/adal v0.9.18
99 github.com/Azure/go-autorest/autorest/azure/auth v0.5.10
10- github.com/Azure/go-autorest/autorest/azure/cli v0.4.3
10+ github.com/Azure/go-autorest/autorest/azure/cli v0.4.5
1111 github.com/golang-jwt/jwt/v4 v4.2.0
1212 github.com/google/go-querystring v1.1.0
1313 github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
Original file line number Diff line number Diff line change @@ -60,14 +60,13 @@ github.com/Azure/go-autorest/autorest v0.11.24 h1:1fIGgHKqVm54KIPT+q8Zmd1QlVsmHq
6060github.com/Azure/go-autorest/autorest v0.11.24 /go.mod h1:G6kyRlFnTuSbEYkQGawPfsCswgme4iYf6rfSKUDzbCc =
6161github.com/Azure/go-autorest/autorest/adal v0.9.5 /go.mod h1:B7KF7jKIeC9Mct5spmyCB/A8CG/sEz1vwIRGv/bbw7A =
6262github.com/Azure/go-autorest/autorest/adal v0.9.13 /go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M =
63- github.com/Azure/go-autorest/autorest/adal v0.9.14 /go.mod h1:W/MM4U6nLxnIskrw4UwWzlHfGjwUS50aOsc/I3yuU8M =
6463github.com/Azure/go-autorest/autorest/adal v0.9.18 h1:kLnPsRjzZZUF3K5REu/Kc+qMQrvuza2bwSnNdhmzLfQ =
6564github.com/Azure/go-autorest/autorest/adal v0.9.18 /go.mod h1:XVVeme+LZwABT8K5Lc3hA4nAe8LDBVle26gTrguhhPQ =
6665github.com/Azure/go-autorest/autorest/azure/auth v0.5.10 h1:F9A3Z++TtAoFysBsNOIJILoHuYBaYvhVGsMGEqPtIS8 =
6766github.com/Azure/go-autorest/autorest/azure/auth v0.5.10 /go.mod h1:zQXYYNX9kXzRMrJNVXWUfNy38oPMF5/2TeZ4Wylc9fE =
6867github.com/Azure/go-autorest/autorest/azure/cli v0.4.2 /go.mod h1:7qkJkT+j6b+hIpzMOwPChJhTqS8VbsqqgULzMNRugoM =
69- github.com/Azure/go-autorest/autorest/azure/cli v0.4.3 h1:DOhB+nXkF7LN0JfBGB5YtCF6QLK8mLe4psaHF7ZQEKM =
70- github.com/Azure/go-autorest/autorest/azure/cli v0.4.3 /go.mod h1:yAQ2b6eP/CmLPnmLvxtT1ALIY3OR1oFcCqVBi8vHiTc =
68+ github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 h1:0W/yGmFdTIT77fvdlGZ0LMISoLHFJ7Tx4U0yeB+uFs4 =
69+ github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 /go.mod h1:ADQAXrkgm7acgWVUNamOgh8YNrv4p27l3Wc55oVfpzg =
7170github.com/Azure/go-autorest/autorest/date v0.3.0 h1:7gUk1U5M/CQbp9WoqinNzJar+8KY+LPI6wiWrP/myHw =
7271github.com/Azure/go-autorest/autorest/date v0.3.0 /go.mod h1:BI0uouVdmngYNUzGWeSYnokU+TrmwEsOqdt8Y6sso74 =
7372github.com/Azure/go-autorest/autorest/mocks v0.4.1 h1:K0laFcLE6VLTOwNgSxaGbUcLPuGXlNkbVvq4cW4nIHk =
You can’t perform that action at this time.
0 commit comments