Skip to content

Commit

Permalink
mf
Browse files Browse the repository at this point in the history
  • Loading branch information
mam10eks committed Dec 3, 2024
1 parent 9478035 commit 7880300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/src/tira_app/endpoints/admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from ..ir_datasets_loader import run_irds_command

logger = logging.getLogger("tira")
from .. import model as modeldb

logger.info("ajax_routes: Logger active")


Expand Down Expand Up @@ -582,7 +584,7 @@ def admin_create_group(request, vm_id):

try:
vm_id = slugify(vm_id)
model.model.modeldb.VirtualMachine.objects.create(vm_id=vm_id, user_password="no-password", roles="user")
modeldb.VirtualMachine.objects.create(vm_id=vm_id, user_password="no-password", roles="user")
context = auth.create_group(vm_id)

return JsonResponse({"status": 0, "context": context})
Expand Down

0 comments on commit 7880300

Please sign in to comment.