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
- # The task includes an option with an undefined variable.
no need to add full stop
- # The command runing error.
ditto
- # Some service could not fand the requested host.
ditto
fand -> find
puts "service.error.unable-to-star-service.#{$1}: 1"
star -> start
puts "service.error.unable-to-star-service.#{$1}.message: #{ansible_stats_error}"
ditto
Thanks, Yong