Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
locriandev committed Dec 1, 2022
1 parent d409c98 commit 78ef274
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions doozerlib/cli/release_gen_assembly.py
Expand Up @@ -334,15 +334,15 @@ def _collect_outliers(self):

if package_name not in self.component_image_builds:
if self.custom:
self.logger.warning(f'Unable to find %s in releases despite it being marked as is_payload '
f'in ART metadata; this may be because the image is not built for every arch '
f'or it is not labeled appropriately for the payload. '
f'Choosing what was in the estimated basis event sweep: %s',
self.logger.warning('Unable to find %s in releases despite it being marked as is_payload '
'in ART metadata; this may be because the image is not built for every arch '
'or it is not labeled appropriately for the payload. '
'Choosing what was in the estimated basis event sweep: %s',
dgk, basis_event_build_nvr)
else:
self.logger.error(f'Unable to find %s in releases despite it being marked as is_payload '
f'in ART metadata; this may mean the image does not have the proper labeling for '
f'being in the payload. Choosing what was in the estimated basis event sweep: %s',
self.logger.error('Unable to find %s in releases despite it being marked as is_payload '
'in ART metadata; this may mean the image does not have the proper labeling for '
'being in the payload. Choosing what was in the estimated basis event sweep: %s',
dgk, basis_event_build_nvr)
self.component_image_builds[package_name] = basis_event_build_dict
continue
Expand All @@ -351,8 +351,8 @@ def _collect_outliers(self):
ref_nightlies_component_build_nvr = ref_releases_component_build.get_nvr()

if basis_event_build_nvr != ref_nightlies_component_build_nvr:
self.logger.info(f'%s build %s was selected by estimated basis event. That is not what is in the '
f'specified releases, so this image will be pinned.', dgk, basis_event_build_nvr)
self.logger.info('%s build %s was selected by estimated basis event. That is not what is in the '
'specified releases, so this image will be pinned.', dgk, basis_event_build_nvr)
self.force_is.add(package_name)
continue

Expand All @@ -370,8 +370,8 @@ def _get_rhcos_container(self):
if self.custom:
# This is permitted for custom assemblies which do not need to be assembled for every
# architecture. The customer may just need x86_64.
self.logger.info(f'Did not find RHCOS "%s" image for active group architecture: %s; '
f'ignoring for custom assembly type.', self.primary_rhcos_tag, arch)
self.logger.info('Did not find RHCOS "%s" image for active group architecture: %s; '
'ignoring for custom assembly type.', self.primary_rhcos_tag, arch)
else:
self._exit_with_error(
f'Did not find RHCOS "{self.primary_rhcos_tag}" image for active group architecture: {arch}')
Expand Down Expand Up @@ -442,8 +442,8 @@ def _select_rpms(self):

if basis_event_build_nvr != ref_releases_rpm_build['nvr']:
# The basis event estimate did not find the RPM from the nightlies. We have to pin the package.
self.logger.info(f'%s build %s was selected by estimated basis event. '
f'That is not what is in the specified releases, so this RPM will be pinned.',
self.logger.info('%s build %s was selected by estimated basis event. '
'That is not what is in the specified releases, so this RPM will be pinned.',
dgk, basis_event_build_nvr)
self.force_is.add(package_name)

Expand Down
4 changes: 2 additions & 2 deletions tests/cli/test_gen_assembly.py
Expand Up @@ -116,7 +116,7 @@ def test_nightly_release_pullspecs(self):
self.assertEqual(
gacli.release_pullspecs,
{'x86_64': 'registry.ci.openshift.org/ocp/release:4.13.0-0.nightly-2022-12-01-153811'}
)
)
self.assertEqual(
gacli.reference_releases_by_arch['x86_64'],
'4.13.0-0.nightly-2022-12-01-153811'
Expand Down Expand Up @@ -157,7 +157,7 @@ def test_standard_release_pullspecs(self):
self.assertEqual(
gacli.release_pullspecs,
{'x86_64': 'quay.io/openshift-release-dev/ocp-release:4.11.18-x86_64'}
)
)
self.assertEqual(
gacli.reference_releases_by_arch,
{}
Expand Down

0 comments on commit 78ef274

Please sign in to comment.