mirror of https://github.com/Icinga/icinga2.git
parent
b5ada44330
commit
9a678dce8e
|
@ -83,16 +83,6 @@ String IcingaDB::CalculateCheckSumProperties(const ConfigObject::Ptr& object, co
|
||||||
|
|
||||||
static const std::set<String> metadataWhitelist ({"package", "source_location", "templates"});
|
static const std::set<String> metadataWhitelist ({"package", "source_location", "templates"});
|
||||||
|
|
||||||
String IcingaDB::CalculateCheckSumVars(const CustomVarObject::Ptr& object)
|
|
||||||
{
|
|
||||||
Dictionary::Ptr vars = object->GetVars();
|
|
||||||
|
|
||||||
if (!vars)
|
|
||||||
return HashValue(Empty);
|
|
||||||
|
|
||||||
return HashValue(vars);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prepare object's custom vars for being written to Redis
|
* Prepare object's custom vars for being written to Redis
|
||||||
*
|
*
|
||||||
|
|
|
@ -84,7 +84,6 @@ private:
|
||||||
static String GetObjectIdentifier(const ConfigObject::Ptr& object);
|
static String GetObjectIdentifier(const ConfigObject::Ptr& object);
|
||||||
static String GetEnvironment();
|
static String GetEnvironment();
|
||||||
static String CalculateCheckSumProperties(const ConfigObject::Ptr& object, const std::set<String>& propertiesBlacklist);
|
static String CalculateCheckSumProperties(const ConfigObject::Ptr& object, const std::set<String>& propertiesBlacklist);
|
||||||
static String CalculateCheckSumVars(const CustomVarObject::Ptr& object);
|
|
||||||
static Dictionary::Ptr SerializeVars(const CustomVarObject::Ptr& object);
|
static Dictionary::Ptr SerializeVars(const CustomVarObject::Ptr& object);
|
||||||
|
|
||||||
static String HashValue(const Value& value);
|
static String HashValue(const Value& value);
|
||||||
|
|
Loading…
Reference in New Issue