def fake_get_actions(context, uuid): actions = [] for act in six.itervalues(self.fake_actions[uuid]): action = models.InstanceAction() action.update(act) actions.append(action) return actions
def fake_get_actions(context, uuid, limit=None, marker=None, filters=None): actions = [] for act in self.fake_actions[uuid].values(): action = models.InstanceAction() action.update(act) actions.append(action) return actions
def fake_get_action(context, uuid, request_id): action = models.InstanceAction() action.update(self.fake_actions[uuid][request_id]) return action