Skip to content

Commit

Permalink
docs(dns): 中文标准化
Browse files Browse the repository at this point in the history
  • Loading branch information
OMG-By authored and gaohongsong committed Oct 25, 2023
1 parent 771a4df commit 5905cf6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def client_set_dns_server_flow(self):

# TODO 检查是否能解析是否成功

sub_pipelines.append(sub_pipeline.build_sub_process(sub_name="{}配置dns服务器".format(ip)))
sub_pipelines.append(sub_pipeline.build_sub_process(sub_name=_("{}配置dns服务器").format(ip)))
client_pipeline.add_parallel_sub_pipeline(sub_pipelines)

client_pipeline.run_pipeline()
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def _execute(self, data, parent_data) -> bool:
try:
content = getattr(trans_data, splice_payload_var)
if content != "":
raise Exception("/etc/resolv.conf 不为空 {}".format(content))
raise Exception(_("/etc/resolv.conf 不为空 {}").format(content))
except ValueError as e:
self.log_error("/etc/resolv.conf 不为空 {}".format(e))
self.log_error(_("/etc/resolv.conf 不为空 {}").format(e))
data.outputs.ext_result = False
return False

Expand Down

0 comments on commit 5905cf6

Please sign in to comment.