Commit f0c6751a authored by Elvin Sindrilaru's avatar Elvin Sindrilaru

MGM: When removing a node delete also any corresponding entries from the...

MGM: When removing a node delete also any corresponding entries from the configuration. Fixes EOS-3265
parent bed4a74d
Pipeline #705583 canceled with stages
in 29 minutes and 29 seconds
......@@ -344,6 +344,12 @@ ProcCommand::Node()
stdErr += "'";
}
}
// Delete also the entry from the configuration
eos_info("msg=\"delete from configuration\" node_name=%s",
nodeconfigname.c_str());
gOFS->ConfEngine->DeleteConfigValueByMatch("global", nodeconfigname.c_str());
gOFS->ConfEngine->AutoSave();
}
}
} 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