diff --git a/operation-service/zeus/operation_service/app/core/framework/task/task_result/task_result_detail.py b/operation-service/zeus/operation_service/app/core/framework/task/task_result/task_result_detail.py index 531a3da2925e5a6765204deb698699e2ac11704d..6bbcdefcef4d041e7e3eed82d02042b714c25e63 100644 --- a/operation-service/zeus/operation_service/app/core/framework/task/task_result/task_result_detail.py +++ b/operation-service/zeus/operation_service/app/core/framework/task/task_result/task_result_detail.py @@ -38,7 +38,7 @@ class TaskResultDetail(ABC): "0": { "zh": "巡检包0", "en": "healthcheck0", - "verson": "1.0.0" + "version": "1.0.0" }, } } diff --git a/operation-service/zeus/operation_service/app/core/framework/tools/ssh.py b/operation-service/zeus/operation_service/app/core/framework/tools/ssh.py index 88e93bf56bdc4489b3f89cf3073795480fb41d41..9795194699c81fa7fb58084ad19a5ee99732c9c5 100644 --- a/operation-service/zeus/operation_service/app/core/framework/tools/ssh.py +++ b/operation-service/zeus/operation_service/app/core/framework/tools/ssh.py @@ -218,7 +218,7 @@ class RemoteControl(object): self.m_channel.send(b"PS1=\"" + self.waitstr.encode("utf-8") + b"\"\n") ret, _ = self.read_until(">", self.timeout * 4, wait_list=["$", "#"]) LOGGER.info(f"[ssh]: {repr(ret)}") - # bash命令返回较慢 等待第二次返回,用于清空 chanel + # bash命令返回较慢 等待第二次返回,用于清空 channel if ret.count("$".encode("utf-8")) != 2 and ret.count("#".encode("utf-8")) != 2 and ret.count( ">".encode("utf-8")) != 2: ret, _ = self.read_until(">", 1, wait_list=["$", "#"], ignore_log=True) diff --git a/operation-service/zeus/operation_service/app/proxy/script.py b/operation-service/zeus/operation_service/app/proxy/script.py index 5ff9e68d36f970e49c96cba3bc43e45e456c8497..2c0eab2e175026fd037b8d5ab7afd81663828b92 100644 --- a/operation-service/zeus/operation_service/app/proxy/script.py +++ b/operation-service/zeus/operation_service/app/proxy/script.py @@ -223,7 +223,7 @@ class ScriptProxy(MysqlProxy): arch = configuration.support.os_arch name = configuration.support.os_name except AttributeError: - LOGGER.error("config file not find supprot.os_arch or support.os_name") + LOGGER.error("config file not find support.os_arch or support.os_name") return OPERATION_WRONG_SUPPORT_CONFIG, info info = {'os_aarch': arch, 'os_name': name} return SUCCEED, info