]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Add optional file permission argument to replace_file()
authorajmiller <al.miller@ajmiller.net>
Tue, 25 Aug 2015 04:04:02 +0000 (21:04 -0700)
committerajmiller <al.miller@ajmiller.net>
Fri, 28 Aug 2015 15:13:25 +0000 (08:13 -0700)
commitee374e7a5f4dea538fcd942f5b6a42a6ebd1503f
tree34e3184b0936180b35c2b6c9ebc586b087459a16
parent4f802232771d051d0fe076e6458674a995c6bc14
Add optional file permission argument to replace_file()

The replace_file() utility function currently sets the mode of all files
it creates to 0o644.  This is not appropriate for all files.  This patch
adds an optional "file_mode" argument to the function.

Change-Id: I9744abde10b95fadef6e74c55332d041e5372071
Partial-Bug: 1488320
neutron/agent/linux/utils.py
neutron/tests/unit/agent/linux/test_utils.py