Commit bf80799f authored by ibuler's avatar ibuler

modify port type

parent 38f89042
...@@ -365,7 +365,7 @@ def get_user_host(username): ...@@ -365,7 +365,7 @@ def get_user_host(username):
def get_connect_item(username, ip): def get_connect_item(username, ip):
asset = get_object(Asset, ip=ip) asset = get_object(Asset, ip=ip)
port = asset.port port = int(asset.port)
if not asset.is_active: if not asset.is_active:
raise ServerError('Host %s is not active.' % ip) raise ServerError('Host %s is not active.' % ip)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment