-
-
Notifications
You must be signed in to change notification settings - Fork 651
Items: Introduce BootableItem
#3805
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
Conversation
This commit temporarily moves the job of "boot_files" (providing additional files for TFTP) to the "template_files" property which has the same job but for Koan.
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
02dc693
to
7e86bdf
Compare
The integration tests are passing in the container locally. See the collapsed section for results. Click me
|
This reflects the job of the class much better.
The logic behind template_files and boot_files is slightly different, as such we now only warn in case of bailing out of the tftpgen.
69628e6
to
02802ff
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM. I see we're now processing more templates since we merged template and boot files, but since this is a temporary measure (and the render
part of the templating engine is actually not that computationally expensive), I'm OK with this. No nits from my side this time :))
Linked Items
Split out of #3440
Description
This PR is introducing the new abstract class
BootableItem
. This refactoring consists of the following things:fetchable_files
attributeboot_files
attributeItem
toBootableItem
and move it to the abstract folder.Behaviour changes
Old: Cobbler has an enormous base class
Item
New: The item hierarchy is much slimmer.
Category
This is related to a:
Tests