mirror of https://github.com/Icinga/icinga2.git
parent
c3385e6e38
commit
ed00ab04c7
|
@ -130,7 +130,7 @@ void ConfigObject::ModifyAttribute(const String& attr, const Value& value, bool
|
|||
int fid = type->GetFieldId(fieldName);
|
||||
Field field = type->GetFieldInfo(fid);
|
||||
|
||||
if (field.Attributes & FAInternal || field.Attributes & FANoModify)
|
||||
if (field.Attributes & FAInternal || field.Attributes & FANoModify)
|
||||
BOOST_THROW_EXCEPTION(std::invalid_argument("Attribute cannot be modified."));
|
||||
|
||||
if (field.Attributes & FAConfig) {
|
||||
|
|
Loading…
Reference in New Issue