Skip to content

Commit

Permalink
fixup! fixup! scan_target_kernel: produce rich info about installed t…
Browse files Browse the repository at this point in the history
…arget kernel
  • Loading branch information
mhecko committed Aug 4, 2023
1 parent 9628a5a commit 94d2184
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from leapp.actors import Actor
from leapp.libraries.actor import scankernel
from leapp.models import InstalledTargetKernelVersion, InstalledTargetKernelInfo, TransactionCompleted
from leapp.models import InstalledTargetKernelVersion, InstalledTargetKernelInfo, TransactionCompleted, KernelInfo
from leapp.tags import IPUWorkflowTag, RPMUpgradePhaseTag


Expand All @@ -15,7 +15,7 @@ class ScanInstalledTargetKernelVersion(Actor):
"""

name = 'scan_installed_target_kernel_version'
consumes = (TransactionCompleted,)
consumes = (TransactionCompleted, KernelInfo)
produces = (InstalledTargetKernelInfo, InstalledTargetKernelVersion)
tags = (RPMUpgradePhaseTag, IPUWorkflowTag)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from leapp.libraries.common import kernel as kernel_lib
from leapp.libraries.common.config.version import get_target_major_version
from leapp.libraries.stdlib import api, CalledProcessError, run
from leapp.models import InstalledTargetKernelInfo, InstalledTargetKernelVersion
from leapp.models import InstalledTargetKernelInfo, InstalledTargetKernelVersion, KernelInfo


KernelBootFiles = namedtuple('KernelBootFiles', ('vmlinuz_path', 'initramfs_path'))
Expand Down

0 comments on commit 94d2184

Please sign in to comment.