From a761eb5404511a18c2590e915a528d1813e13e68 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Wed, 22 May 2019 13:56:36 -0400 Subject: [PATCH] Improve the message when the existing firmware level doesn't match the images provided (signed vs test) --- perl-xCAT/xCAT/PPCrflash.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl-xCAT/xCAT/PPCrflash.pm b/perl-xCAT/xCAT/PPCrflash.pm index b80bb82e2..da305f0ff 100644 --- a/perl-xCAT/xCAT/PPCrflash.pm +++ b/perl-xCAT/xCAT/PPCrflash.pm @@ -528,7 +528,8 @@ sub get_lic_filenames { @dirlist = grep /\.rpm$/, @dirlist; @dirlist = grep /$1/, @dirlist; if (!scalar(@dirlist)) { - $msg = "There isn't a package suitable for $mtms"; + # the last grep above is using $1, which is $pns, the output message should help figure out what is wrong + $msg = "Existing firmware type is: $pns, no matching firmware package found in directory"; return ("", "", "", $msg, -1); } if (scalar(@dirlist) > 1) {