-Have rinv assume 'all' if nothing specified
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
d05b968cd9
commit
018a0180a0
@ -912,6 +912,9 @@ sub inv {
|
||||
push @invitems,split( /,/,$_);
|
||||
}
|
||||
my $item;
|
||||
unless (scalar(@invitems)) {
|
||||
@invitems = ("all");
|
||||
}
|
||||
while (my $item = shift @invitems) {
|
||||
if ($item =~ /^all/) {
|
||||
push @invitems,(qw(mtm serial mac firm));
|
||||
|
@ -1454,6 +1454,9 @@ sub inv {
|
||||
return($rc,$text);
|
||||
}
|
||||
|
||||
unless ($subcommand) {
|
||||
$subcommand = "all";
|
||||
}
|
||||
if($subcommand eq "all") {
|
||||
@types = qw(model serial deviceid mprom guid);
|
||||
}
|
||||
@ -1479,7 +1482,7 @@ sub inv {
|
||||
@types = qw(guid);
|
||||
}
|
||||
else {
|
||||
return(1,"unsupported command inv $subcommand");
|
||||
return(1,"unsupported BMC inv argument $subcommand");
|
||||
}
|
||||
|
||||
foreach(@types) {
|
||||
|
Loading…
Reference in New Issue
Block a user