From 318198b1f59323afb2737afd15878451cfe044ef Mon Sep 17 00:00:00 2001 From: Yuan Bai Date: Mon, 23 Apr 2018 17:51:53 +0800 Subject: [PATCH] chdef print warning when postscript is already included in the 'xcatdefaults' (#5112) --- perl-xCAT/xCAT/DBobjUtils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index fc9e9b0fd..e9745510a 100755 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -1311,7 +1311,7 @@ sub setobjdefs if (grep(/^$tempps$/, @xcatdefps)) { my $rsp; $rsp->{data}->[0] = "$obj: postscripts \'$tempps\' is already included in the \'xcatdefaults\'."; - xCAT::MsgUtils->message("E", $rsp, $::callback); + xCAT::MsgUtils->message("W", $rsp, $::callback); } else { push @newps, $tempps; } @@ -1325,7 +1325,7 @@ sub setobjdefs if (grep(/^$temppbs$/, @xcatdefpbs)) { my $rsp; $rsp->{data}->[0] = "$obj: postbootscripts \'$temppbs\' is already included in the \'xcatdefaults\'."; - xCAT::MsgUtils->message("E", $rsp, $::callback); + xCAT::MsgUtils->message("W", $rsp, $::callback); } else { push @newpbs, $temppbs; }