From d5156303ee702658b411e9b033bf33b282a5fbea Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 6 Apr 2020 13:05:20 +0300 Subject: [PATCH] fix hostname for user instance list --- instances/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instances/views.py b/instances/views.py index 7b9c51a..36add4d 100644 --- a/instances/views.py +++ b/instances/views.py @@ -1193,7 +1193,7 @@ def get_user_instances(request): for usr_inst in user_instances: if connection_manager.host_is_up(usr_inst.instance.compute.type, usr_inst.instance.compute.hostname): - conn = wvmHostDetails(usr_inst.instance.compute, + conn = wvmHostDetails(usr_inst.instance.compute.hostname, usr_inst.instance.compute.login, usr_inst.instance.compute.password, usr_inst.instance.compute.type) @@ -1429,7 +1429,7 @@ def sshkeys(request, vname): instance_keys = [] userinstances = UserInstance.objects.filter(instance__name=vname) - + for ui in userinstances: keys = UserSSHKey.objects.filter(user=ui.user) for k in keys: