From eac2017ebeed09d9d89df6ffde72bb312b0fcf9a Mon Sep 17 00:00:00 2001 From: yinle Date: Fri, 15 Mar 2013 06:07:11 +0000 Subject: [PATCH] fix the issue that lsslp put in the SLP request messages into the "stana" files working with lsslp -z flag git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@15524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/lsslp.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/lsslp.pm b/xCAT-server/lib/xcat/plugins/lsslp.pm index 7c7ff986b..68ce0e2d3 100644 --- a/xCAT-server/lib/xcat/plugins/lsslp.pm +++ b/xCAT-server/lib/xcat/plugins/lsslp.pm @@ -523,6 +523,7 @@ sub invoke_dodiscover { $arg{Retry} = $maxt; $arg{Count} = $globalopt{C} if($globalopt{C}); $arg{Time} = $globalopt{T} if($globalopt{T}); + $arg{nomsg} = 1 if($globalopt{z} or $globalopt{x}); $arg{reqcallback} = $request->{callback} if($request->{callback}); my ($searchmacsref,$sendcount,$rsp) = xCAT::SLP::dodiscover(%arg); @@ -1713,7 +1714,7 @@ sub process_request { $min = "more than 2"; } #my $start1 = Time::HiRes::gettimeofday(); - send_msg( \%request, 0, "$sendcount requests with $rspc responses. Now processing responses. This will take $min minutes..."); + send_msg( \%request, 0, "$sendcount requests with $rspc responses. Now processing responses. This will take $min minutes...") unless ($globalopt{x} or $globalopt{z}); format_output( \%request, $searchmacsref); #my $elapsed1 = Time::HiRes::gettimeofday() - $start1; #send_msg( \%request, 0, "$num nodes takes $elapsed1");