2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-13 18:00:38 +00:00

modify rspconfig usage

This commit is contained in:
XuWei
2018-03-21 03:49:18 -04:00
parent 3aad0f9acc
commit cfe6c0db7f
2 changed files with 13 additions and 3 deletions

View File

@ -185,6 +185,16 @@ my %usage = (
rspconfig <noderange> [hostname|ntpservers]
rspconfig <noderange> [hostname=<*|hostname>|ntpservers=<ntpservers>]
rspconfig <noderange> sshcfg
rspconfig <noderange> powerrestorepolicy
rspconfig <noderange> powerrestorepolicy={always_on|restore|always_off}
rspconfig <noderange> powersupplyredundancy
rspconfig <noderange> powersupplyredundancy={disabled|enabled}
rspconfig <noderange> timesyncmethod
rspconfig <noderange> timesyncmethod={ntp|manual}
rspconfig <noderange> bootmode
rspconfig <noderange> bootmode={safe|regular|setup}
rspconfig <noderange> autoreboot
rspconfig <noderange> autoreboot={0|1}
",
"rspconfig.begin" =>
"BMC/MPA Common:

View File

@ -789,11 +789,11 @@ sub preprocess_request {
# Could not find usage for openbmc section, try getting usage for all sections
$usage_string = xCAT::Usage->parseCommand($command, @exargs);
}
else {
#else {
# Usage for openbmc section was extracted, append autogenerated usage for
# configured commands
$usage_string .= &build_config_api_usage($callback, $command);
}
# $usage_string .= &build_config_api_usage($callback, $command);
#}
$callback->({ data => [$usage_string] });
$request = {};