2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-22 22:15:30 +00:00

Merge pull request #4258 from zet809/disable_check_ipsrc_for_bmcdiscover

Disable option --check and --ipsource for bmcdiscover
This commit is contained in:
Victor Hu
2017-11-13 20:20:52 -05:00
committed by GitHub

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"], errorcode=>[1]});
$request = ();
return;
} elsif (grep /--ipsource/, @ARGV) {
$callback->({ error => ["The option '--ipsource' is not supported"], errorcode=>[1]});
$request = ();
return;
} else {
return [$request];
}