Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
cd84f0d5
Commit
cd84f0d5
authored
Nov 01, 2014
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改拖动窗口关闭的bug
parent
de283722
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
jumpserver.py
jumpserver.py
+6
-2
No files found.
jumpserver.py
View file @
cd84f0d5
...
@@ -247,7 +247,7 @@ def exec_cmd_servers(username):
...
@@ -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
'
\n
Input the
\033
[32mCommand
\033
[0m , The command will be Execute on servers, q/Q to quit.
\n
'
print
'
\n
Input 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__':
...
@@ -288,7 +288,11 @@ if __name__ == '__main__':
print_prompt
()
print_prompt
()
try
:
try
:
while
True
:
while
True
:
option
=
raw_input
(
"
\033
[1;32mOpt or IP>:
\033
[0m "
)
try
:
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment