mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 01:45:27 +00:00
[Bugfix] 修复打印中文报错异常
This commit is contained in:
@@ -28,7 +28,6 @@ class AdHocResultCallback(CallbackModule):
|
||||
host = res._host.get_name()
|
||||
task_name = res.task_name
|
||||
task_result = res._result
|
||||
print(task_result)
|
||||
|
||||
if self.results_raw[t].get(host):
|
||||
self.results_raw[t][host][task_name] = task_result
|
||||
|
@@ -32,7 +32,6 @@ class BaseHost(Host):
|
||||
}
|
||||
"""
|
||||
self.host_data = host_data
|
||||
print(host_data)
|
||||
hostname = host_data.get('hostname') or host_data.get('ip')
|
||||
port = host_data.get('port') or 22
|
||||
super().__init__(hostname, port)
|
||||
@@ -62,7 +61,6 @@ class BaseHost(Host):
|
||||
self.set_variable("ansible_become_pass", become.get('pass', ''))
|
||||
else:
|
||||
self.set_variable("ansible_become", False)
|
||||
print(self.get_vars())
|
||||
|
||||
def __set_extra_variables(self):
|
||||
for k, v in self.host_data.get('vars', {}).items():
|
||||
|
Reference in New Issue
Block a user