Beispiel #1
0
    def get_all(self):
        LOG.info("Get all runtimes.")

        runtimes = [resources.Runtime.from_dict(db_model.to_dict())
                    for db_model in db_api.get_runtimes()]

        return resources.Runtimes(runtimes=runtimes)
Beispiel #2
0
    def get_all(self):
        LOG.info("Get all %ss.", self.type)

        runtimes = [
            resources.Runtime.from_db_obj(db_model)
            for db_model in db_api.get_runtimes()
        ]

        return resources.Runtimes(runtimes=runtimes)