juju_verify.utils.action module

Helper function to manage Juju action.

juju_verify.utils.action.data_from_action(action: Action, key: str, default: str = '') str

Extract value from Action.data[‘results’] dictionary.

Parameters:
  • action – juju.Action instance

  • key – key to search for in action’s results

  • default – default value to return if the ‘key’ is not found

Returns:

value from the action’s results identified by ‘key’ or default