Commit bbc40766 authored by ibuler's avatar ibuler

修改bug

parent d1358b3d
...@@ -376,7 +376,7 @@ def exec_cmd_servers(username): ...@@ -376,7 +376,7 @@ def exec_cmd_servers(username):
inputs = raw_input('\033[1;32mip(s)>: \033[0m') inputs = raw_input('\033[1;32mip(s)>: \033[0m')
if inputs in ['q', 'Q']: if inputs in ['q', 'Q']:
break break
get_hosts = get_user_host(username)[0].keys() get_hosts = get_user_host(username).keys()
for host in get_hosts: for host in get_hosts:
if fnmatch.fnmatch(host, inputs): if fnmatch.fnmatch(host, inputs):
hosts.append(host.strip()) hosts.append(host.strip())
......
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