From bf80799fb6b91d0a296669268622de877eafaa24 Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 25 May 2015 17:13:08 +0800 Subject: [PATCH] modify port type --- jumpserver/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jumpserver/api.py b/jumpserver/api.py index 50461810e..3e909a035 100644 --- a/jumpserver/api.py +++ b/jumpserver/api.py @@ -365,7 +365,7 @@ def get_user_host(username): def get_connect_item(username, ip): asset = get_object(Asset, ip=ip) - port = asset.port + port = int(asset.port) if not asset.is_active: raise ServerError('Host %s is not active.' % ip)