forked from lix-project/hydra
Don't show redundant "removing machine..." messages
This commit is contained in:
parent
f8ee98f455
commit
2d128d2a6f
|
@ -71,7 +71,8 @@ void State::parseMachines(const std::string & contents)
|
||||||
|
|
||||||
for (auto & m : oldMachines)
|
for (auto & m : oldMachines)
|
||||||
if (newMachines.find(m.first) == newMachines.end()) {
|
if (newMachines.find(m.first) == newMachines.end()) {
|
||||||
printMsg(lvlInfo, format("removing machine ‘%1%’") % m.first);
|
if (m.second->enabled)
|
||||||
|
printMsg(lvlInfo, format("removing machine ‘%1%’") % m.first);
|
||||||
/* Add a disabled Machine object to make sure stats are
|
/* Add a disabled Machine object to make sure stats are
|
||||||
maintained. */
|
maintained. */
|
||||||
auto machine = std::make_shared<Machine>(*(m.second));
|
auto machine = std::make_shared<Machine>(*(m.second));
|
||||||
|
|
Loading…
Reference in a new issue