neutron.agent.linux.utils:replace_file() and
neutron.common.utils:replace_file() have same functionality.
This is the final patch in a series of 4 patches.
It marks neutron.agent.linux.utils:replace_file() for removal.
Closes-bug: #
1504477
Depends-On: Id0eb6829ce75df5ffccc354adfe2f0ccb19ed9fd
Depends-On: I4352b7f1d6a55e47bbff4f3a1fcf136ed645dcbe
Change-Id: I26b0a4d6105420a2c242b81a4cd58e0adef4cbec
import tempfile
import threading
+import debtcollector
import eventlet
from eventlet.green import subprocess
from eventlet import greenthread
for char in info[MAC_START:MAC_END]])[:-1]
+@debtcollector.removals.remove(message="Redundant in Mitaka release.")
def replace_file(file_name, data, file_mode=0o644):
"""Replaces the contents of file_name with data in a safe manner.