]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Use common agent.linux.utils.ensure_dir method
authorzengfagao <zengfa.gao@hp.com>
Mon, 9 Feb 2015 16:17:24 +0000 (08:17 -0800)
committerzengfagao <zengfa.gao@hp.com>
Thu, 12 Mar 2015 03:46:31 +0000 (20:46 -0700)
commiteba4c2941ee60409d5e481347d9a856947dbf216
tree07b11dded4d2453e86f84e70a67b7e0ebd255cfc
parent7f5cc90633fcd5d477c95e35a5120d607d32986d
Use common agent.linux.utils.ensure_dir method

We repeated os.makedirs(dir, 0o755) in several places. We should use
common neutron.agent.linux.utils.ensure_dir. Unit tests are also added.

Change-Id: Iaeae5ff7dc6676420c000d6501f69a5997ad4b6c
Closes-bug: 1419042
neutron/agent/dhcp/agent.py
neutron/agent/l3/ha.py
neutron/agent/linux/dhcp.py
neutron/agent/linux/keepalived.py
neutron/agent/metadata/agent.py
neutron/tests/unit/agent/linux/test_utils.py
neutron/tests/unit/test_l3_agent.py
neutron/tests/unit/test_linux_dhcp.py
neutron/tests/unit/test_linux_external_process.py
neutron/tests/unit/test_metadata_agent.py