8000 "cobbler buildiso": Prevent image based systems from being processed by SchoolGuy · Pull Request #3237 · cobbler/cobbler · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

"cobbler buildiso": Prevent image based systems from being processed #3237

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 23, 2022

Conversation

SchoolGuy
Copy link
Member

Linked Items

Fixes #3236

Description

See title

Behaviour changes

Old: cobbler buildiso --systems processes image based systems

New: cobbler buildiso --systems doesn't process image based systems

Category

This is related to a:

  • Bugfix
  • Feature
  • Packaging
  • Docs
  • Code Quality
  • Refactoring
  • Miscellaneous

Tests

  • Unit-Tests were created
  • System-Tests were created
  • Code is already covered by Unit-Tests
  • Code is already covered by System-Tests
  • No tests required

Before it was not clear that the command was only able to work with systems
that are profile based. This is now mentioned at two prominent locations.
Systems that are image based will be filtered out.
The test will now consider that image based systems should not appear in the
list of systems.
@SchoolGuy SchoolGuy added this to the v3.4.0 milestone Aug 22, 2022
@SchoolGuy SchoolGuy requested a review from a team August 22, 2022 14:09
@github-actions github-actions bot added documentation Improvements or additions to documentation tests labels Aug 22, 2022
Copy link
Contributor
@agraul agraul left a comment

Choose a reason for hiding this comment

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

I'm trusting you that the "filter condition" is correct, otherwise looks fine. Personally I would use a list comprehension, but that's just my preference.

@codecov
Copy link
codecov bot commented Aug 23, 2022

Codecov Report

Merging #3237 (e081227) into main (8545cc9) will increase coverage by 0.15%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3237      +/-   ##
==========================================
+ Coverage   65.26%   65.42%   +0.15%     
==========================================
  Files         110      110              
  Lines       14937    14942       +5     
==========================================
+ Hits         9749     9776      +27     
+ Misses       5188     5166      -22     
Impacted Files Coverage Δ
cobbler/actions/buildiso/netboot.py 44.95% <100.00%> (+0.91%) ⬆️
cobbler/cobbler_collections/menus.py 80.00% <0.00%> (-2.23%) ⬇️
cobbler/api.py 66.71% <0.00%> (+0.15%) ⬆️
cobbler/tftpgen.py 53.85% <0.00%> (+0.25%) ⬆️
cobbler/utils/__init__.py 66.05% <0.00%> (+0.49%) ⬆️
cobbler/actions/buildiso/__init__.py 87.50% <0.00%> (+0.65%) ⬆️
cobbler/items/image.py 88.98% <0.00%> (+0.88%) ⬆️
cobbler/items/system.py 89.10% <0.00%> (+1.43%) ⬆️
cobbler/cobbler_collections/images.py 83.72% <0.00%> (+2.32%) ⬆️

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

@SchoolGuy SchoolGuy merged commit 640e16c into main Aug 23, 2022
@SchoolGuy SchoolGuy deleted the fix/buildiso-image-based-systems branch August 23, 2022 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation tests
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

cobbler buildiso fails when a system is based on an image
2 participants
0