summaryrefslogtreecommitdiffstats
path: root/glustolibs-io
diff options
context:
space:
mode:
authorVitalii Koriakov <vkoriako@redhat.com>2018-10-26 13:18:28 +0300
committerNigel Babu <nigelb@redhat.com>2018-10-29 09:57:30 +0000
commitc10083a0166969ec5474fd8a92cfd35cf0536ffe (patch)
tree7dd33882f6581988f22a6ec8a0d5934d029b4605 /glustolibs-io
parent3d5274169cac77566e6fb1fb2a53d01ca4af1d13 (diff)
Using a raw strings for fixing flake warnings
Change-Id: Ie134790ea05919a4b396657c11cbc3fc7a7fc529 Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
Diffstat (limited to 'glustolibs-io')
-rwxr-xr-x[-rw-r--r--]glustolibs-io/glustolibs/io/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-io/glustolibs/io/utils.py b/glustolibs-io/glustolibs/io/utils.py
index 8b9a9e1..8584e2a 100644..100755
--- a/glustolibs-io/glustolibs/io/utils.py
+++ b/glustolibs-io/glustolibs/io/utils.py
@@ -149,7 +149,7 @@ def list_all_files_and_dirs_mounts(mounts):
mounts = [mounts]
ignore_dirs_list = [".trashcan"]
- ignore_dirs = "\|".join(ignore_dirs_list)
+ ignore_dirs = r"\|".join(ignore_dirs_list)
g.log.info("Start Listing mounts files and dirs")
all_mounts_procs = []
@@ -349,7 +349,7 @@ def cleanup_mounts(mounts):
# Check if mount points are empty
ignore_dirs_list = [".trashcan"]
- ignore_dirs = "\|".join(ignore_dirs_list)
+ ignore_dirs = r"\|".join(ignore_dirs_list)
all_mounts_procs = []
for mount_obj in mounts:
cmd = ("find %s -mindepth 1 | grep -ve '%s'" %