MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CheckFeatureInternal

Method CheckFeatureInternal

lib/cli/featureutility.cpp:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221bool FeatureUtility::CheckFeatureInternal(const String& feature, bool check_disabled)
222{
223 std::vector<String> features;
224
225 if (!FeatureUtility::GetFeatures(features, check_disabled))
226 return false;
227
228 for (const String& check_feature : features) {
229 if (check_feature == feature)
230 return true;
231 }
232
233 return false;
234}
235
236void FeatureUtility::CollectFeatures(const String& feature_file, std::vector<String>& features)
237{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected