2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 11:42:05 +00:00

Disable option --check and --ipsource for bmcdiscover

This commit is contained in:
ertaozh 2017-11-07 03:40:37 -05:00
parent 76ce161a98
commit 031baf5940

View File

@ -106,6 +106,14 @@ sub preprocess_request {
push @requests, $reqcopy;
}
return \@requests;
} elsif (grep /--check/, @ARGV) {
$callback->({ error => ["The option '--check' is not supported at present"], errorcode=>[1]});
$request = ();
return;
} elsif (grep /--ipsource/, @ARGV) {
$callback->({ error => ["The option '--ipsource' is not supported at present"], errorcode=>[1]});
$request = ();
return;
} else {
return [$request];
}