mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
e33dffcbba
commit
3b04e04565
@ -445,6 +445,7 @@ void DbConnection::UpdateObject(const ConfigObject::Ptr& object)
|
||||
|
||||
Dictionary::Ptr configFields = dbobj->GetConfigFields();
|
||||
String configHash = dbobj->CalculateConfigHash(configFields);
|
||||
ASSERT(configHash.GetLength() <= 64);
|
||||
configFields->Set("config_hash", configHash);
|
||||
|
||||
String cachedHash = GetConfigHash(dbobj);
|
||||
|
@ -175,5 +175,5 @@ String UserDbObject::CalculateConfigHash(const Dictionary::Ptr& configFields) co
|
||||
if (groups)
|
||||
hashData += DbObject::HashValue(groups);
|
||||
|
||||
return hashData;
|
||||
return SHA256(hashData);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user