Merge pull request 'Make the displayed SSH username configurable' (#13) from mirsal/capsul-flask:ssh-username into yolocolo

Reviewed-on: 3wordchant/capsul-flask#12
This commit is contained in:
2021-08-10 12:00:35 +02:00
5 changed files with 8 additions and 5 deletions

View File

@ -112,6 +112,8 @@ def detail(id):
if vm is None:
return abort(404, f"{id} doesn't exist.")
vm['ssh_username'] = current_app.config['SSH_USERNAME']
if vm['deleted']:
return render_template("capsul-detail.html", vm=vm, delete=True, deleted=True)