mirror of https://github.com/Icinga/icinga2.git
Make sure that the 'version' attribute is updated when config attributes are changed
fixes #10355
This commit is contained in:
parent
14e37a0554
commit
74aa5c1d6b
|
@ -222,12 +222,11 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
|
|||
|
||||
SetField(fid, newValue);
|
||||
|
||||
if (updated_original_attributes) {
|
||||
if (updateVersion)
|
||||
if (updateVersion && (field.Attributes & FAConfig))
|
||||
SetVersion(Utility::GetTime());
|
||||
|
||||
if (updated_original_attributes)
|
||||
NotifyOriginalAttributes();
|
||||
}
|
||||
}
|
||||
|
||||
void ConfigObject::RestoreAttribute(const String& attr)
|
||||
|
|
Loading…
Reference in New Issue