Commit 0b97c198 authored by ibuler's avatar ibuler

修改bug

parent 89e21333
...@@ -260,7 +260,7 @@ def get_connect_item(username, ip): ...@@ -260,7 +260,7 @@ def get_connect_item(username, ip):
password_common = asset.password_common password_common = asset.password_common
except TypeError: except TypeError:
raise ServerError('Decrypt %s map to %s password in %s error.' % (username, username_common, ip)) raise ServerError('Decrypt %s map to %s password in %s error.' % (username, username_common, ip))
return username_common, password_common, ip, port return 'CU', username_common, password_common, ip, port
else: else:
raise ServerError('Perm in %s for %s map role is not in ["SU", "CU"].' % (ip, username)) raise ServerError('Perm in %s for %s map role is not in ["SU", "CU"].' % (ip, username))
......
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