]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Switch to using neutron.common.utils:replace_file()
authorBogdan Tabor <bogdan.tabor@ericpol.com>
Wed, 7 Oct 2015 13:49:08 +0000 (15:49 +0200)
committerBogdan Tabor <bogdan.tabor@ericpol.com>
Mon, 16 Nov 2015 07:44:04 +0000 (08:44 +0100)
commitdad0969a2eed6ee428521784d4d51e3b971c25b4
tree948afd758d45684a1b072dd2218574a54682259d
parente7675a8af5574d42f63f7cc6a43005f0beec8b27
Switch to using neutron.common.utils:replace_file()

neutron.agent.linux.utils:replace_file() and
neutron.common.utils:replace_file() have same functionality.

This is the 1st patch in the series of 4 patches.
It modifies neutron.common.utils:replace_file(),
so it can be used by all components as a replacement
for neutron.agent.linux.utils:replace_file().
New keyword parameter 'file_mode=0o644' is added
to neutron.common.utils:replace_file().

Partial-bug: #1504477
Change-Id: Id1a7f1236786e8606c91bb9925cd9ac8e95892b3
neutron/agent/linux/dhcp.py
neutron/agent/linux/dibbler.py
neutron/agent/linux/keepalived.py
neutron/agent/linux/ra.py
neutron/common/utils.py
neutron/tests/functional/common/__init__.py [new file with mode: 0644]
neutron/tests/functional/common/test_utils.py [new file with mode: 0644]
neutron/tests/unit/agent/l3/test_agent.py
neutron/tests/unit/agent/l3/test_dvr_local_router.py
neutron/tests/unit/agent/linux/test_dhcp.py