2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-09-27 04:28:17 +00:00

Revert "fix rinv should return correct warning message when the option is not valid"

This reverts commit 5d13aa4cf4.
This commit is contained in:
Jarrod Johnson
2017-01-18 12:58:19 -05:00
parent bcc9f1292a
commit 26a243c48b

View File

@@ -2511,7 +2511,6 @@ sub beacon_answer {
sub inv {
my $sessdata = shift;
my $command = $sessdata->{command};
my $subcommand = $sessdata->{subcommand};
my $rc = 0;
@@ -2567,9 +2566,9 @@ sub inv {
@types = qw(guid);
}
else {
my $usage_string = xCAT::Usage->getUsage($command);
$callback->({ error => ["$usage_string"], errorcode => [1] });
return 1;
@types = ($subcommand);
#return(1,"unsupported BMC inv argument $subcommand");
}
$sessdata->{invtypes} = \@types;
initfru($sessdata);