
On Thu, Feb 18, 2021 at 09:24:40AM +0800, Wang Yong wrote:
On Thu, Feb 18, 2021 at 09:07:40AM +0800, Wang Chenglong wrote:
[How] ansible_stats_openeuler < ${job_output}
Signed-off-by: Wang Chenglong <18509160991@163.com> --- stats/ansible_test | 100 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 90 insertions(+), 10 deletions(-)
diff --git a/stats/ansible_test b/stats/ansible_test index 4c7d07b3e..f31771e5c 100755 --- a/stats/ansible_test +++ b/stats/ansible_test
+ ansible_stats_error = `echo '#{line}' |grep -E 'FAILED! |failed: .*}$' | awk -F'=>' '{$1="";print $0}'`
^ ^ add blank add blank
Ok. The second blank is necessary.
+ # The task includes an option with an undefined variable.
no need to add full stop
Ok.
+ # The command runing error.
ditto
ok
+ # Some service could not fand the requested host.
ditto
ok
fand -> find
ok
+ puts "service.error.unable-to-star-service.#{$1}: 1"
star -> start
ok
+ puts "service.error.unable-to-star-service.#{$1}.message: #{ansible_stats_error}" ditto
Thanks, Yong