From 307d877e51240e1d50c0fc42b190f1247f387f85 Mon Sep 17 00:00:00 2001 From: Amir Shehata Date: Wed, 3 Oct 2018 17:17:03 -0700 Subject: [PATCH] LU-11469 lnet: fix "debug recovery" output Don't print out anything from lnetctl debug recovery [--local|--peer] if there are no NIs on the recovery queues. Test-Parameters: trivial Signed-off-by: Amir Shehata Change-Id: Icf4d5e2f1e3eefafce81dcc73525a4dd9a36d009 Reviewed-on: https://review.whamcloud.com/33310 Reviewed-by: Doug Oucharek Reviewed-by: Sonia Sharma Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Olaf Weber Reviewed-by: Oleg Drokin --- lnet/utils/lnetconfig/liblnetconfig.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lnet/utils/lnetconfig/liblnetconfig.c b/lnet/utils/lnetconfig/liblnetconfig.c index 4978c42..a3d8a5c 100644 --- a/lnet/utils/lnetconfig/liblnetconfig.c +++ b/lnet/utils/lnetconfig/liblnetconfig.c @@ -3476,6 +3476,9 @@ int show_recovery_queue(enum lnet_health_type type, char *name, int seq_no, goto out; } + if (nid_list.rlst_num_nids == 0) + goto out; + root = cYAML_create_object(NULL, NULL); if (root == NULL) goto out; -- 1.8.3.1