Merge "Switch to using neutron.common.utils:replace_file()"

This commit is contained in:
Jenkins
2015-11-21 20:05:22 +00:00
committed by Gerrit Code Review

View File

@@ -24,6 +24,7 @@ import struct
import tempfile
import threading
import debtcollector
import eventlet
from eventlet.green import subprocess
from eventlet import greenthread
@@ -164,6 +165,7 @@ def get_interface_mac(interface):
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.