mirror of https://github.com/jumpserver/jumpserver
修改拖动窗口关闭的bug
parent
de2837229c
commit
cd84f0d5c6
|
@ -247,7 +247,7 @@ def exec_cmd_servers(username):
|
||||||
ip_all, ip_all_dict = ip_all_select(username)
|
ip_all, ip_all_dict = ip_all_select(username)
|
||||||
no_perm = set(hosts)-set(ip_all)
|
no_perm = set(hosts)-set(ip_all)
|
||||||
if no_perm:
|
if no_perm:
|
||||||
print "You have no permission on %s." % list(no_perm)
|
print "You have NO PERMISSION on %s..." % list(no_perm)
|
||||||
continue
|
continue
|
||||||
print '\nInput the \033[32mCommand\033[0m , The command will be Execute on servers, q/Q to quit.\n'
|
print '\nInput the \033[32mCommand\033[0m , The command will be Execute on servers, q/Q to quit.\n'
|
||||||
while True:
|
while True:
|
||||||
|
@ -288,7 +288,11 @@ if __name__ == '__main__':
|
||||||
print_prompt()
|
print_prompt()
|
||||||
try:
|
try:
|
||||||
while True:
|
while True:
|
||||||
|
try:
|
||||||
option = raw_input("\033[1;32mOpt or IP>:\033[0m ")
|
option = raw_input("\033[1;32mOpt or IP>:\033[0m ")
|
||||||
|
except EOFError:
|
||||||
|
print
|
||||||
|
continue
|
||||||
if option in ['P', 'p']:
|
if option in ['P', 'p']:
|
||||||
print_your_server(username)
|
print_your_server(username)
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue