1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00

reorg imports and black format

This commit is contained in:
catborise 2022-11-02 16:05:41 +03:00
parent fcd4b79431
commit a1eab70e2d
27 changed files with 319 additions and 305 deletions

View file

@ -1,5 +1,3 @@
from virtsecrets.forms import AddSecret
from admin.decorators import superuser_only
from computes.models import Compute
from django.contrib import messages
@ -15,6 +13,8 @@ from libvirt import (
)
from vrtManager.virtsecrets import wvmSecrets
from virtsecrets.forms import AddSecret
@superuser_only
def secrets(request, compute_id):
@ -36,10 +36,7 @@ def secrets(request, compute_id):
try:
conn = wvmSecrets(
compute.hostname,
compute.login,
compute.password,
compute.type
compute.hostname, compute.login, compute.password, compute.type
)
secrets = conn.get_secrets()