2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-19 02:51:09 +00:00

chdef print warning when postscript is already included in the 'xcatdefaults' (#5112)

This commit is contained in:
Yuan Bai
2018-04-23 17:51:53 +08:00
committed by yangsong
parent 2f193bbe9f
commit 318198b1f5

View File

@@ -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;
}