Commit 8d178a73 authored by Michael Ott's avatar Michael Ott
Browse files

Fix parsing of groups embedded in entity templates

parent 4110c1e5
...@@ -535,10 +535,10 @@ protected: ...@@ -535,10 +535,10 @@ protected:
SGroup* group = new SGroup(val.second.data()); SGroup* group = new SGroup(val.second.data());
if(readSensorGroup(*group, val.second)) { if(readSensorGroup(*group, val.second)) {
group->setEntity(&sEntity); group->setEntity(&sEntity);
auto ret = _templateSensorGroups.insert(std::pair<std::string, SGroup*>(val.second.data(), group)); auto ret = _templateSensorGroups.insert(std::pair<std::string, SGroup*>(sEntity.getName() + "::" + group->getGroupName(), group));
if(!ret.second) { if(!ret.second) {
LOG(warning) << "Template " << _groupName << " " LOG(warning) << "Template " << _groupName << " "
<< val.second.data() << " already exists! Omitting..."; << sEntity.getName() + "::" + group->getGroupName() << " already exists! Omitting...";
delete group; delete group;
} }
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment