From 9ffdd908c6cdbb6aad67370d258fbe82c03994d5 Mon Sep 17 00:00:00 2001 From: jjhua Date: Tue, 29 Nov 2011 05:16:54 +0000 Subject: [PATCH] make the dfm log message only if they are using DFM git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCrflash.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/PPCrflash.pm b/perl-xCAT/xCAT/PPCrflash.pm index 55020ea06..10472864c 100644 --- a/perl-xCAT/xCAT/PPCrflash.pm +++ b/perl-xCAT/xCAT/PPCrflash.pm @@ -207,8 +207,12 @@ sub parse_args { if(noderange_validate($request) == -1) { return(usage()); } - - $request->{callback}->({data =>[ "It may take considerable time to complete, depending on the number of systems being updated. In particular, power subsystem updates may take an hour or more if there are many attached managed systems. Please waiting. If you use Direct FSP/BPA management(DFM) to do the firmware update, You can find the log files in the /var/log/xcatd/dfm/rflash/."]}); + + $request->{callback}->({data =>[ "It may take considerable time to complete, depending on the number of systems being updated. In particular, power subsystem updates may take an hour or more if there are many attached managed systems. Please waiting. "]}); + + if( $request->{hwtype} =~ /^fsp$/ && $opt{activate} =~ /^disruptive$/ ) { + $request->{callback}->({data =>[ "You can find the log files in the /var/log/xcatd/dfm/rflash/."]}); + } #################################### # No operands - add command name