Exemple #1
0
function deleteConfig($zkClient, $parser)
{
    /*{{{*/
    $required = array("hostname", "log_path");
    $invalidOptions = array_diff(array_keys(AdminUtils::$LOG_COLLECTION_CONFIG_ITEMS), $required);
    CommandLineUtils::checkRequiredArgs($parser, $required);
    //CommandLineUtils::checkInvalidArgs($parser, 'delete', $invalidOptions);
    $configs = getConfig($parser, AdminUtils::$LOG_COLLECTION_CONFIG_ITEMS);
    AdminUtils::deleteConfig($zkClient, $configs);
}