mistralclient.utils module

mistralclient.utils.do_action_on_many(action, resources, success_msg, error_msg)

Helper to run an action on many resources.


Get the contents of a file.

If the value passed in is a file name or file URI, return the contents. If not, or there is an error reading the file contents, return the value passed in as the contents.

For example, a workflow definition will be returned if either the workflow definition file name, or file URI are passed in, or the actual workflow definition itself is passed in.