From 36adad3d69471f4dfc67cfb84c1e47ba038c1760 Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Tue, 5 Sep 2017 13:55:02 -0400 Subject: [PATCH] xcatprobe nodechect verify if any nodes at all --- xCAT-probe/subcmds/nodecheck | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-probe/subcmds/nodecheck b/xCAT-probe/subcmds/nodecheck index 2e75e3e6b..67bdc43a2 100755 --- a/xCAT-probe/subcmds/nodecheck +++ b/xCAT-probe/subcmds/nodecheck @@ -92,10 +92,10 @@ sub check_for_duplicate_mtms_sn { chomp($all_nodes_mtm_serial); my @all_nodes_mtm_serial_lines = split("[\n\r]", $all_nodes_mtm_serial); - if ($all_nodes_mtm_serial =~ /Usage:/) { + if ($all_nodes_mtm_serial =~ /Usage:|Could not find any object definitions to display/) { - # lsdef command displayed a Usage message. Must be some noderange formatting problem. - # Issue a warning and exit. + # lsdef command displayed a Usage message. Must be some noderange formatting problem, + # or no nodes defined at all. Issue a warning and exit. probe_utils->send_msg("$output", "w", "Can not get a list of nodes from specified noderange."); return 1; }