From 94641537b80f079044f0b76f92cb6670d4587a59 Mon Sep 17 00:00:00 2001 From: Chuck Short Date: Sun, 30 Sep 2018 07:16:09 -0400 Subject: [PATCH] Rename cinder.privsep.utils to cinder.privsep.path Rename file to path because most of these functions in the file have to do with filesystem paths and the like. Change-Id: I709d8f8722c6a477e50d0ee7fd9a368a16fe9cca Signed-off-by: Chuck Short --- cinder/privsep/{utils.py => path.py} | 0 cinder/volume/targets/nvmet.py | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename cinder/privsep/{utils.py => path.py} (100%) diff --git a/cinder/privsep/utils.py b/cinder/privsep/path.py similarity index 100% rename from cinder/privsep/utils.py rename to cinder/privsep/path.py diff --git a/cinder/volume/targets/nvmet.py b/cinder/volume/targets/nvmet.py index e1d8fa0d0a9..67b45c71e52 100644 --- a/cinder/volume/targets/nvmet.py +++ b/cinder/volume/targets/nvmet.py @@ -21,7 +21,7 @@ import six from cinder import exception from cinder.privsep import nvmcli -import cinder.privsep.utils +import cinder.privsep.path from cinder import utils from cinder.volume.targets import nvmeof @@ -192,7 +192,7 @@ class NVMET(nvmeof.NVMeOF): # in order to avoid executing cat as root with utils.temporary_chown(tmp_file_path): try: - out = cinder.privsep.utils.readfile(tmp_file_path) + out = cinder.privsep.path.readfile(tmp_file_path) except putils.ProcessExecutionError: with excutils.save_and_reraise_exception(): LOG.exception('Failed to read: %s', tmp_file_path) @@ -208,6 +208,6 @@ class NVMET(nvmeof.NVMeOF): def _delete_file(self, file_path): try: - cinder.privsep.utils.removefile(file_path) + cinder.privsep.path.removefile(file_path) except putils.ProcessExecutionError: LOG.exception('Failed to delete file: %s', file_path)