Skip to content

Commit 26d33bf

Browse files
committed
Fix pylint issues
1 parent 64cf2e5 commit 26d33bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: osia/installer/downloader/install.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
BUILD_ROOT = "https://openshift-release-artifacts.svc.ci.openshift.org/"
3636
PREVIEW_ROOT = "http://mirror.openshift.com/pub/openshift-v4/clients/ocp-dev-preview/"
3737

38-
VERSION_RE = re.compile(r"^openshift-install-(?P<platform>\w+)(?P<architecture>-\w+)?-(?P<version>\d+.*)\.tar\.gz")
38+
VERSION_RE = re.compile(r"^openshift-install-(?P<platform>\w+)"
39+
r"(?P<architecture>-\w+)?-(?P<version>\d+.*)\.tar\.gz")
3940
EXTRACTION_RE = re.compile(r'.*Extracting tools for .*, may take up to a minute.*')
4041

4142

@@ -61,7 +62,8 @@ def get_url(directory: str) -> Tuple[Optional[str], Optional[str]]:
6162
for k in links:
6263
match = VERSION_RE.match(k.get('href'))
6364
if match and match.group('platform') == os_name:
64-
if (arch and not match.group('architecture')) or (not arch and match.group('architecture')):
65+
if (arch and not match.group('architecture')) \
66+
or (not arch and match.group('architecture')):
6567
continue
6668
installer = lst.url + k.get('href')
6769
version = match.group('version')

0 commit comments

Comments
 (0)