Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[RHELC-297] Fix the format of message about unavailable kernel modules. #651

Merged
merged 2 commits into from
Nov 7, 2022

Conversation

abadger
Copy link
Member

@abadger abadger commented Nov 4, 2022

In #469, one of the cleanups ended up calling "\n".join() on a list of kernel modules twice. The first time changes the list into a string with each entry separated by a newline but the second time changes the string into another string with each chatacter separated by a newline. Fixed that by removing the second str.join().

This also refactors away a call to map() and use of lambda. In modern python, any uses of map() or filter() can be replaced with either a generator expression or list comprehension.

Related to #469

Jira Issue: RHELC-297

Checklist

  • PR meets acceptance criteria specified in the Jira issue
  • PR has been tested manually in a VM (either author or reviewer)
  • Jira issue has been made public if possible
  • [RHELC-] is part of the PR title
  • Code and tests are documented properly
  • The commits are squashed to as few commits as possible (without losing data)
  • When merged: Jira issue has been updated to Release Pending

abadger and others added 2 commits November 4, 2022 09:19
In oamg#469, one of the cleanups ended up calling `"\n".join()` on a list of
kernel modules twice.  The first time changes the list into a string
with each entry separated by a newline but the second time changes the
string into another string with each chatacter separated by a newline.
Fixed that by removing the second `str.join()`.

This also refactors away a call to `map()` and use of `lambda`.  In
modern python, any uses of `map()` or `filter()` can be replaced with
either a generator expression or list comprehension.

Related to oamg#469
@codecov
Copy link

codecov bot commented Nov 4, 2022

Codecov Report

Base: 93.35% // Head: 93.35% // No change to project coverage 👍

Coverage data is based on head (a364fcc) compared to base (969b23a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #651   +/-   ##
=======================================
  Coverage   93.35%   93.35%           
=======================================
  Files          22       22           
  Lines        3145     3145           
  Branches      558      558           
=======================================
  Hits         2936     2936           
  Misses        147      147           
  Partials       62       62           
Flag Coverage Δ
centos-linux-6 89.85% <ø> (ø)
centos-linux-7 89.32% <ø> (ø)
centos-linux-8 89.51% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
convert2rhel/checks.py 95.30% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@abadger abadger changed the title Fix the format of message about unavailable kernel modules. [RHELC-784] Fix the format of message about unavailable kernel modules. Nov 4, 2022
@r0x0d r0x0d merged commit e8e582f into oamg:main Nov 7, 2022
@r0x0d r0x0d changed the title [RHELC-784] Fix the format of message about unavailable kernel modules. [RHELC-297] Fix the format of message about unavailable kernel modules. Nov 7, 2022
hosekadam pushed a commit to hosekadam/convert2rhel that referenced this pull request Nov 11, 2022
…s. (oamg#651)

* Fix the format of message about unavailable kernel modules.

In oamg#469, one of the cleanups ended up calling `"\n".join()` on a list of
kernel modules twice.  The first time changes the list into a string
with each entry separated by a newline but the second time changes the
string into another string with each chatacter separated by a newline.
Fixed that by removing the second `str.join()`.

This also refactors away a call to `map()` and use of `lambda`.  In
modern python, any uses of `map()` or `filter()` can be replaced with
either a generator expression or list comprehension.

Related to oamg#469

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@Venefilyn Venefilyn mentioned this pull request Nov 30, 2022
abadger added a commit to Andrew-ang9/convert2rhel that referenced this pull request Dec 7, 2022
…s. (oamg#651)

* Fix the format of message about unavailable kernel modules.

In oamg#469, one of the cleanups ended up calling `"\n".join()` on a list of
kernel modules twice.  The first time changes the list into a string
with each entry separated by a newline but the second time changes the
string into another string with each chatacter separated by a newline.
Fixed that by removing the second `str.join()`.

This also refactors away a call to `map()` and use of `lambda`.  In
modern python, any uses of `map()` or `filter()` can be replaced with
either a generator expression or list comprehension.

Related to oamg#469

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Venefilyn pushed a commit that referenced this pull request Jun 19, 2023
…s. (#651)

* Fix the format of message about unavailable kernel modules.

In #469, one of the cleanups ended up calling `"\n".join()` on a list of
kernel modules twice.  The first time changes the list into a string
with each entry separated by a newline but the second time changes the
string into another string with each chatacter separated by a newline.
Fixed that by removing the second `str.join()`.

This also refactors away a call to `map()` and use of `lambda`.  In
modern python, any uses of `map()` or `filter()` can be replaced with
either a generator expression or list comprehension.

Related to #469

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants