mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
70062b5884
commit
8d81f4b90a
@ -532,7 +532,7 @@ Value AExpression::OpObject(const AExpression* expr, const Dictionary::Ptr& loca
|
||||
}
|
||||
|
||||
if (!checkName.IsEmpty()) {
|
||||
ConfigItem::Ptr oldItem = ConfigItem::GetObject(type, name);
|
||||
ConfigItem::Ptr oldItem = ConfigItem::GetObject(type, checkName);
|
||||
|
||||
if (oldItem) {
|
||||
std::ostringstream msgbuf;
|
||||
|
@ -129,7 +129,7 @@ Dictionary::Ptr ConfigItem::GetProperties(void)
|
||||
const DynamicObjectNameHelper *nh = dynamic_cast<const DynamicObjectNameHelper *>(Type::GetByName(m_Type));
|
||||
|
||||
if (nh) {
|
||||
String name = nh->MakeObjectName(m_Name, m_Properties);
|
||||
name = nh->MakeObjectName(m_Name, m_Properties);
|
||||
|
||||
if (name.IsEmpty())
|
||||
BOOST_THROW_EXCEPTION(std::runtime_error("Could not determine name for object"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user