Skip to content

examples: use terminate_instance_and_wait_for_work_request in launch_instance_example - #900

Open
reginaldalfret wants to merge 1 commit into
oracle:masterfrom
reginaldalfret:fix/issue-878-terminate-instance-example
Open

reginaldalfret wants to merge 1 commit into
oracle:masterfrom
reginaldalfret:fix/issue-878-terminate-instance-example

Conversation

@reginaldalfret

Copy link
Copy Markdown

Summary

In examples/launch_instance_example.py, terminate_instance() previously called compute_client_composite_operations.terminate_instance_and_wait_for_state(), which was removed in favor of terminate_instance_and_wait_for_work_request().

This PR updates terminate_instance() in examples/launch_instance_example.py to call terminate_instance_and_wait_for_work_request() so the example runs without raising AttributeError.

Fixes #878

Signed-off-by: reginaldalfret [email protected]

…d_wait_for_work_request

terminate_instance_and_wait_for_state was replaced by terminate_instance_and_wait_for_work_request in ComputeClientCompositeOperations. Update launch_instance_example.py accordingly.

Fixes oracle#878

Signed-off-by: reginaldalfret <[email protected]>
@oracle-contributor-agreement

Copy link
Copy Markdown

Thank you for your pull request and welcome to our community! To contribute, please sign the Oracle Contributor Agreement (OCA).
The following contributors of this PR have not signed the OCA:

To sign the OCA, please create an Oracle account and sign the OCA in Oracle's Contributor Agreement Application.

When signing the OCA, please provide your GitHub username. After signing the OCA and getting an OCA approval from Oracle, this PR will be automatically updated.

If you are an Oracle employee, please make sure that you are a member of the main Oracle GitHub organization, and your membership in this organization is public.

@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Required At least one contributor does not have an approved Oracle Contributor Agreement. label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Required At least one contributor does not have an approved Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example uses non-existent API

1 participant