2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-31 10:06:39 +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
commit 796aa8dccb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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