NodeAddChildrenAction: Really import nodes if instructed to do so

This commit is contained in:
Johannes Meyer 2019-02-22 14:30:06 +01:00
parent 0d262bf0d0
commit cacc24f501

View file

@ -32,7 +32,7 @@ class NodeAddChildrenAction extends NodeAction
$node = $config->getBpNode($this->getNodeName());
foreach ($this->children as $name) {
if (! $config->hasNode($name)) {
if (! $config->hasNode($name) || $config->getNode($name)->getBpConfig()->getName() !== $config->getName()) {
if (strpos($name, ';') !== false) {
list($host, $service) = preg_split('/;/', $name, 2);