mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-07-19 11:01:09 +00:00
chdef print warning when postscript is already included in the 'xcatdefaults' (#5112)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user