2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

the RESTAPI for supporting to add/modify user/password for BMC with rspconfig

This commit is contained in:
ertaozh 2015-05-15 06:40:27 -04:00
parent 91cc4b2c65
commit 6041cea621

View File

@ -1883,6 +1883,13 @@ sub actionhdl {
} elsif ($paramhash->{'value'}) {
push @args, $urilayers[3]."=".$paramhash->{'value'};
}
if (defined($urilayers[3]) and $urilayers[3] =~ /^account/) {
foreach my $key (keys %$paramhash) {
if (($key ne '') and (exists($paramhash->{$key}))) {
push @args, $key."=".$paramhash->{$key};
}
}
}
} elsif ($params->{'resourcename'} eq "eventlog") {
if (isGET()) {
push @args, 'all';