eotk: import instance information from terraform
This commit is contained in:
parent
567fcce0bb
commit
ce520b87a5
11 changed files with 233 additions and 74 deletions
16
app/portal/eotk.py
Normal file
16
app/portal/eotk.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
from flask import render_template, Blueprint
|
||||
from sqlalchemy import desc
|
||||
|
||||
from app.models.onions import Eotk
|
||||
|
||||
bp = Blueprint("eotk", __name__)
|
||||
|
||||
|
||||
@bp.route("/list")
|
||||
def eotk_list():
|
||||
instances = Eotk.query.filter(Eotk.destroyed == None).order_by(desc(Eotk.added)).all()
|
||||
return render_template("list.html.j2",
|
||||
section="eotk",
|
||||
title="EOTK Instances",
|
||||
item="eotk",
|
||||
items=instances)
|
Loading…
Add table
Add a link
Reference in a new issue