Ejemplo n.º 1
0
 def get_by_instance_uuid(cls,
                          context,
                          instance_uuid,
                          limit=None,
                          marker=None,
                          filters=None):
     db_actions = db.actions_get(context, instance_uuid, limit, marker,
                                 filters)
     return base.obj_make_list(context, cls(), InstanceAction, db_actions)
Ejemplo n.º 2
0
 def get_by_instance_uuid(cls, context, instance_uuid, limit=None,
                          marker=None, filters=None):
     db_actions = db.actions_get(
         context, instance_uuid, limit, marker, filters)
     return base.obj_make_list(context, cls(), InstanceAction, db_actions)
Ejemplo n.º 3
0
def get_action_for_instance(context, instance_uuid, action_name):
    actions = novadb.actions_get(context, instance_uuid)
    for action in actions:
        if action['action'] == action_name:
            return action
Ejemplo n.º 4
0
def get_action_for_instance(context, instance_uuid, action_name):
    actions = novadb.actions_get(context, instance_uuid)
    for action in actions:
        if action['action'] == action_name:
            return action