Merge "Remove the ensure_dir"

This commit is contained in:
Zuul 2017-11-27 17:00:21 +00:00 committed by Gerrit Code Review
commit 8b77bf3ad3
1 changed files with 0 additions and 9 deletions

View File

@ -31,7 +31,6 @@ import time
import uuid
import weakref
from debtcollector import removals
import eventlet
from eventlet.green import subprocess
import netaddr
@ -41,7 +40,6 @@ from oslo_config import cfg
from oslo_db import exception as db_exc
from oslo_log import log as logging
from oslo_utils import excutils
from oslo_utils import fileutils
import six
import neutron
@ -105,13 +103,6 @@ def throttler(threshold=DEFAULT_THROTTLER_VALUE):
return decorator
@removals.remove(
message="Use ensure_tree(path, 0o755) from oslo_utils.fileutils")
def ensure_dir(dir_path):
"""Ensure a directory with 755 permissions mode."""
fileutils.ensure_tree(dir_path, mode=0o755)
def _subprocess_setup():
# Python installs a SIGPIPE handler by default. This is usually not what
# non-Python subprocesses expect.