Comment update

This commit is contained in:
Uwe Seimet 2021-08-27 09:08:39 +02:00
parent 6bd45346f3
commit 26cd993557

View File

@ -756,11 +756,11 @@ bool ProcessCmd(int fd, const PbDeviceDefinition& pbDevice, const PbOperation cm
files_in_use.insert(filepath.GetPath());
}
// Stop the dry run here, before permanently modifying something
if (dryRun) {
return true;
}
// Initialize everything that would have caused issues when being initialized during the dry run
if (!device->Init(pbDevice.params())) {
error << "Initialization of " << device->GetType() << " device, ID: " << id << ", unit: " << unit << " failed";