Comments (2)
@william-conti config.as_dict()
returns a reference to the same config object. Modifying the host there modifies the config used by AccountClient. You can mitigate this by just using config.copy()
instead of config.as_dict()
.
FYI: v0.19.0 will include AccountClient.get_workspace_client()
which will handle this for you by making a deep copy of the config. With this update, you won't need to maintain your client_for()
function anymore.
from databricks-sdk-py.
@mgyucht The fix still doesn't work:
def test_broken(self):
self._ac.groups.create(display_name="test_xxxx")
for ws in self._ac.workspaces.list():
ss = self._ac.get_workspace_client(ws)
self._ac.groups.create(display_name="test_1xxxxx")
It yields the same below error:
../src/databricks/labs/ucx/account.py:108: in test_broken
self._ac.groups.create(display_name="test_1xxxxx")
../../../Library/Application Support/hatch/env/virtual/databricks-labs-ucx/-POo8FxM/databricks-labs-ucx/lib/python3.11/site-packages/databricks/sdk/service/iam.py:1374: in create
res = self._api.do('POST',
../../../Library/Application Support/hatch/env/virtual/databricks-labs-ucx/-POo8FxM/databricks-labs-ucx/lib/python3.11/site-packages/databricks/sdk/core.py:128: in do
return retryable(self._perform)(method,
../../../Library/Application Support/hatch/env/virtual/databricks-labs-ucx/-POo8FxM/databricks-labs-ucx/lib/python3.11/site-packages/databricks/sdk/retries.py:54: in wrapper
raise err
../../../Library/Application Support/hatch/env/virtual/databricks-labs-ucx/-POo8FxM/databricks-labs-ucx/lib/python3.11/site-packages/databricks/sdk/retries.py:33: in wrapper
return func(*args, **kwargs)
E databricks.sdk.errors.platform.NotFound: Endpoint not found for /2.0/accounts/None/scim/v2/Groups
../../../Library/Application Support/hatch/env/virtual/databricks-labs-ucx/-POo8FxM/databricks-labs-ucx/lib/python3.11/site-packages/databricks/sdk/core.py:221: NotFound
from databricks-sdk-py.
Related Issues (20)
- [ISSUE] workspace_conf.get_status failed
- [ISSUE] sdk job how to fetch the paramteres which are passed in NotebookTask HOT 4
- [ISSUE] databricks sdk jobs. how to create dependency task /lineage using python HOT 2
- [ISSUE] databricks sdk depends_on =['task1'] getting an error attributeerror: str has no attribute 'as_dict' HOT 4
- Can not find LEGACY_SINGLE_USER_STANDARD mode in the sdk HOT 3
- [ISSUE] DeprecationWarning: invalid escape sequence '\.' HOT 1
- [ISSUE] ObjectType.MLFLOW_EXPERIMENT missing in workspace.list results
- [ISSUE] DATABRICK SDK , how to pass output of one notebook to another notebook as input HOT 2
- [ISSUE] notebook native auth failing on container clusters
- [ISSUE] workspace import fails if simplejson is not installed
- [ISSUE] Can't get run result for notebook runs longer than 20 minutes
- [ISSUE] Creating Personal Cluster failed "Validation failed for data_security_mode" HOT 3
- [ISSUE] type_precision and type_scale in columns info are not correct HOT 4
- sql connection using service principal to specific table HOT 2
- [ISSUE] serving_endpoints.patch bug
- [ISSUE] sql query list method not returning the query folder information
- Endless loop in query history implementation HOT 1
- HTTP_PROXY proxy use HOT 1
- [FEATURE] Upload folder support in files.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from databricks-sdk-py.