From 22f7aecbd9e9a9be0e67611f68fd5ff2fc4a4b8a Mon Sep 17 00:00:00 2001 From: gugug Date: Sun, 17 May 2020 18:18:00 +0800 Subject: Enable W503 for flake8 check W503 and W504 are incompatible and we need to choose one of them. Existing codes follows W503, so we disable W504. Change-Id: Ic745e956dd332eb0fa49b93c1e6acb12f8a7f26c --- ansible/library/kolla_docker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ansible/library') diff --git a/ansible/library/kolla_docker.py b/ansible/library/kolla_docker.py index 7b150f078..8c7cab7ae 100644 --- a/ansible/library/kolla_docker.py +++ b/ansible/library/kolla_docker.py @@ -624,8 +624,8 @@ class DockerWorker(object): split_vol = vol.split(':') - if (len(split_vol) == 2 - and ('/' not in split_vol[0] or '/' in split_vol[1])): + if (len(split_vol) == 2 and + ('/' not in split_vol[0] or '/' in split_vol[1])): split_vol.append('rw') vol_list.append(split_vol[1]) -- cgit v1.2.3