From 5db9e6dcecdd235d16fe0781eabe66191707c270 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Mon, 20 Nov 2017 11:06:19 -0500 Subject: [PATCH] Add messages to inform the user of the general action started via xCAT for flashing firmware --- xCAT-server/lib/xcat/plugins/openbmc.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index f4b67ee2b..472364159 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -878,7 +878,7 @@ sub parse_args { } } # show options parsed in bypass mode - print "DEBUG filename=$filename_passed, updateid=$updateid_passed, options=$option_flag, verbose=$verbose, invalid=$invalid_options\n"; + print "DEBUG filename=$filename_passed, updateid=$updateid_passed, options=$option_flag, invalid=$invalid_options rflash_arguments=@flash_arguments\n"; if ($option_flag =~ tr{ }{ } > 0) { unless ($verbose) { @@ -895,6 +895,7 @@ sub parse_args { if ($option_flag !~ /^-c$|^--check$|^-u$|^--upload$|^-a$|^--activate$/) { return ([ 1, "Invalid option specified when a file is provided: $option_flag" ]); } + xCAT::SvrUtils::sendmsg("Attempting to upload $flash_arguments[0], please wait...", $callback); } else { if ($updateid_passed) { @@ -902,6 +903,11 @@ sub parse_args { if ($option_flag !~ /^-d$|^--delete$|^-a$|^--activate$/) { return ([ 1, "Invalid option specified when an update id is provided: $option_flag" ]); } + my $action = "activate"; + if ($option_flag =~ /^-d$|^--delete$/) { + $action = "delete"; + } + xCAT::SvrUtils::sendmsg("Attempting to $action ID=$flash_arguments[0], please wait...", $callback); } else { # Neither Filename nor updateid was not passed, check flags allowed without file or updateid