From 8c73f575b7a61b965b173e8267d8a389f48d5190 Mon Sep 17 00:00:00 2001 From: gitee-cmd Date: Sun, 26 Sep 2021 22:04:31 +0800 Subject: [PATCH] fix diag return --- adoctor-cli/adoctor_cli/commands/diag_cmd.py | 1 + 1 file changed, 1 insertion(+) diff --git a/adoctor-cli/adoctor_cli/commands/diag_cmd.py b/adoctor-cli/adoctor_cli/commands/diag_cmd.py index fb03a0c..9852a9d 100644 --- a/adoctor-cli/adoctor_cli/commands/diag_cmd.py +++ b/adoctor-cli/adoctor_cli/commands/diag_cmd.py @@ -143,6 +143,7 @@ class DiagCommand(BaseCommand): } result = request_without_print('POST', diag_url, pyload, header, params.access_token) print(pretty_json(result)) + return times -= 1 print("There is no task can be found in diagnosis scheduler, please try again.") -- 2.24.3 (Apple Git-128)