Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

consumer: Refactor the code to handle F28 Two week atomic #123

Conversation

sayanchowdhury
Copy link
Contributor

Signed-off-by: Sayan Chowdhury [email protected]

@sayanchowdhury sayanchowdhury force-pushed the feature/refactor-consumer-image-meta branch from 515e48b to 4b218f6 Compare April 27, 2018 10:59

if images_meta is None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here are mostly cosmetic right? There is no bug getting fixed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, these changes are cosmetic changes and fixes the broken tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the changes don't actually change any functionality, how do they fix broken tests?

images_meta.extend(get_value_from_dict(
compose_metadata, 'images', 'payload',
'images', 'AtomicHost', 'x86_64'))
images_meta = cloud_meta + atomic_meta
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if/else block is confusing.. I think I'd rather see something like:

images_meta = []
if cloud_meta:
    images_meta.extend(cloud_meta)
if atomic_meta:
    images_meta.extend(atomic_meta)

@sayanchowdhury sayanchowdhury force-pushed the feature/refactor-consumer-image-meta branch from 4b218f6 to b210d6b Compare May 1, 2018 15:24
@dustymabe
Copy link
Contributor

LGTM. if tests pass

@sayanchowdhury sayanchowdhury merged commit 57b437a into fedora-infra:develop May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants