def _write()

in hostfactory/host_provider/src/util.py [0:0]


    def _write(self, data):
        with open(self.path + ".tmp", "w") as fw:
            indent = 2 if self.formatted else None
            json.dump(data, fw, indent=indent, sort_keys=True)
        shutil.move(self.path + ".tmp", self.path)