Whamcloud - gitweb
LU-19039 lnetconfig: Fix error string in cyaml output 73/59373/4
authorNathaniel Clark <nclark@whamcloud.com>
Thu, 22 May 2025 11:53:20 +0000 (07:53 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 7 Jun 2025 23:06:45 +0000 (23:06 +0000)
commit8342c72b5fe37ffeb1664b3bef8eebd19de3ec54
tree609abdda4becdbb200e1560421f63e9bdbd5f8d7
parentf4e2e5f84a63e08fd0614b2d53b5d0495bb37719
LU-19039 lnetconfig: Fix error string in cyaml output

String output in yaml only needs to be quoted when beginning with '@',
''', '"', or '- ', or contains ':'.

This corrects the most common error output for `lnetctl ping` errors
to be correct yaml and also cleans up all other error strings output.

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Nathaniel Clark <nclark@whamcloud.com>
Change-Id: I9a8436280b34f82cf78152e488b68c0581cc2a7d
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59373
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/utils/lnetconfig/liblnetconfig.c