mirror of https://github.com/jumpserver/jumpserver
Merge branch 'master' of github.com:ibuler/jumpserver
commit
9fc0c9da06
|
@ -32,7 +32,7 @@ from jperm.ansible_api import MyRunner
|
||||||
from jlog.models import ExecLog, FileLog
|
from jlog.models import ExecLog, FileLog
|
||||||
|
|
||||||
login_user = get_object(User, username=getpass.getuser())
|
login_user = get_object(User, username=getpass.getuser())
|
||||||
remote_ip = os.popen("who -m | awk '{ print $5 }'").read().strip('()\n')
|
remote_ip = os.popen("who -m | awk '{ print $NF }'").read().strip('()\n')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import termios
|
import termios
|
||||||
|
|
Loading…
Reference in New Issue