oracle / oracle/oci-python-sdk

Missing method "get_work_request" in oci.tenant_manager_control_plane.OrganizationClient

Open
#551 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

SDK
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.