mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-09-04 09:18:17 +00:00
Honor disablenodesetwarning in packimage
This commit is contained in:
@@ -113,8 +113,13 @@ sub process_request {
|
||||
"version|v" => \$version
|
||||
);
|
||||
if ($arch or $osver or $profile) {
|
||||
$callback->({ error => ["-o, -p and -a options are obsoleted, please use 'packimage <osimage name>' instead."], errorcode => [1] });
|
||||
return 1;
|
||||
my @ents = xCAT::TableUtils->get_site_attribute("disablenodesetwarning");
|
||||
my $site_ent = $ents[0];
|
||||
if (!defined($site_ent) || ($site_ent =~ /no/i) || ($site_ent =~ /0/)) {
|
||||
|
||||
$callback->({ error => ["-o, -p and -a options are obsoleted, please use 'packimage <osimage name>' instead."], errorcode => [1] });
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
if ($version) {
|
||||
my $version = xCAT::Utils->Version();
|
||||
|
Reference in New Issue
Block a user