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:
parent
76ce161a98
commit
031baf5940
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user