mirror of https://github.com/databricks/cli.git
Initialize BRICKS_CLI_PATH and increase default OAuth timeout (#237)
related to https://github.com/databricks/databricks-sdk-go/pull/330
This commit is contained in:
parent
65b3f998ba
commit
f0c35a2b27
|
@ -1,6 +1,8 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
"github.com/databricks/databricks-sdk-go"
|
"github.com/databricks/databricks-sdk-go"
|
||||||
"github.com/databricks/databricks-sdk-go/service/scim"
|
"github.com/databricks/databricks-sdk-go/service/scim"
|
||||||
)
|
)
|
||||||
|
@ -85,3 +87,7 @@ func (w *Workspace) Client() (*databricks.WorkspaceClient, error) {
|
||||||
|
|
||||||
return databricks.NewWorkspaceClient(&config)
|
return databricks.NewWorkspaceClient(&config)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
os.Setenv("BRICKS_CLI_PATH", os.Args[0])
|
||||||
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ const (
|
||||||
appRedirectAddr = "localhost:8020"
|
appRedirectAddr = "localhost:8020"
|
||||||
|
|
||||||
// maximum amount of time to acquire listener on appRedirectAddr
|
// maximum amount of time to acquire listener on appRedirectAddr
|
||||||
DefaultTimeout = 15 * time.Second
|
DefaultTimeout = 45 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
var ( // Databricks SDK API: `databricks OAuth is not` will be checked for presence
|
var ( // Databricks SDK API: `databricks OAuth is not` will be checked for presence
|
||||||
|
|
Loading…
Reference in New Issue