oracle / oracle/oci-python-sdk
Missing method "get_work_request" in oci.tenant_manager_control_plane.OrganizationClient
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 474
- Forks
- 321
- Avg merge
- 23m
- Merged PRs (30d)
- 4
Description
I used OrganizationClientCompositeOperations.create_child_tenancy_and_wait_for_state() to create child tenancy, and the error occurred in line "self.client.get_work_request(wait_for_resource_id),". Here is the error message.
+ File "/opt/rh/rh-python38/root/usr/local/lib/python3.8/site-packages/oci/tenant_manager_control_plane/organization_client_composite_operations.py", line 54, in create_child_tenancy_and_wait_for_state
+ self.client.get_work_request(wait_for_resource_id),
+ AttributeError: 'OrganizationClient' object has no attribute 'get_work_request'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The failure is in oci/tenant_manager_control_plane/organization_client_composite_operations.py at create_child_tenancy_and_wait_for_state(), where self.client.get_work_request(...) is called. Start there and inspect OrganizationClient's available operations; done means the reported call no longer raises AttributeError when creating a child tenancy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100