mirror of https://github.com/sipwise/ngcpcfg.git
In this way, if the file fails to be generated (e.g. because of a broken .yml file) the old file is preserved intact. It doesn't protect from all failures (in particular, it is ineffective against wrong content due to programming errors), but it's safer than having an empty file or truncated as a result of the parsing/generation being stopped due to incorrect files or external events. This is added in the context of creating new /etc/hosts and /etc/network/interfaces files because we found the problem at this point, and having those files empty completely breaks the system. Change-Id: I01e8ef9d6971506aa3f8d9da174ce890ea83393cchanges/68/21568/6
parent
a015a4ac1d
commit
13bc4ca34b
Loading…
Reference in new issue