diff options
author | Vitalii Koriakov <vkoriako@redhat.com> | 2018-10-26 13:18:28 +0300 |
---|---|---|
committer | Nigel Babu <nigelb@redhat.com> | 2018-10-29 09:57:30 +0000 |
commit | c10083a0166969ec5474fd8a92cfd35cf0536ffe (patch) | |
tree | 7dd33882f6581988f22a6ec8a0d5934d029b4605 /glustolibs-gluster/glustolibs/gluster/lib_utils.py | |
parent | 3d5274169cac77566e6fb1fb2a53d01ca4af1d13 (diff) |
Using a raw strings for fixing flake warnings
Change-Id: Ie134790ea05919a4b396657c11cbc3fc7a7fc529
Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
Diffstat (limited to 'glustolibs-gluster/glustolibs/gluster/lib_utils.py')
-rwxr-xr-x[-rw-r--r--] | glustolibs-gluster/glustolibs/gluster/lib_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/glustolibs-gluster/glustolibs/gluster/lib_utils.py b/glustolibs-gluster/glustolibs/gluster/lib_utils.py index 682152f5f..44ac6e3f3 100644..100755 --- a/glustolibs-gluster/glustolibs/gluster/lib_utils.py +++ b/glustolibs-gluster/glustolibs/gluster/lib_utils.py @@ -247,7 +247,7 @@ def get_pathinfo(mnode, filename, volname): umount_volume(mnode, mount_point) g.run(mnode, "rm -rf " + mount_point) - return re.findall(".*?POSIX.*?:(\S+)\>", pathinfo) + return re.findall(r".*?POSIX.*?:(\S+)\>", pathinfo) def list_files(mnode, dir_path, parse_str="", user="root"): @@ -815,7 +815,7 @@ def is_core_file_created(nodes, testrun_timestamp, g.log.info("checking core file created or not") for file1 in dir_list: if (re.search(r'\bcore\.[\S]+\b', file1)): - file_path_list = re.split('[\s]+', cmd) + file_path_list = re.split(r'[\s]+', cmd) file_path = file_path_list[1] + '/' + file1 time_cmd = 'stat ' + '-c ' + '%X ' + file_path ret, file_timestamp, _ = g.run(node, time_cmd) |