pycloudlib.oci.utils module

Utilities for OCI images and instances.

pycloudlib.oci.utils.wait_till_ready(func, current_data, desired_state, sleep_seconds=1000)[source]

Wait until the results of function call reach a desired lifecycle state.

Parameters:
  • func – The function to call
  • current_data – Structure containing the initial id and lifecycle state
  • desired_state – Desired value of “lifecycle_state”
  • sleep_seconds – How long to wait in seconds
Returns:

The updated version of the current_data