forked from rpms/leapp-repository
39 lines
1.4 KiB
Diff
39 lines
1.4 KiB
Diff
|
From acf3346dd0c0b952194cf0c3ff6803e857165d1f Mon Sep 17 00:00:00 2001
|
||
|
From: Petr Stodulka <pstodulk@redhat.com>
|
||
|
Date: Fri, 24 Mar 2023 13:56:07 +0100
|
||
|
Subject: [PATCH 04/30] checkhybridimage: Fix the produce of the report
|
||
|
|
||
|
The actor can produce the report, however the report is never
|
||
|
stored / accepted by the leapp framework as the Report has not been
|
||
|
set in the `produces` tuple. Fixing the actor.
|
||
|
|
||
|
Signed-off-by: Petr Stodulka <pstodulk@redhat.com>
|
||
|
---
|
||
|
.../common/actors/cloud/checkhybridimage/actor.py | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/repos/system_upgrade/common/actors/cloud/checkhybridimage/actor.py b/repos/system_upgrade/common/actors/cloud/checkhybridimage/actor.py
|
||
|
index 47f5fdd8..3cd2d864 100644
|
||
|
--- a/repos/system_upgrade/common/actors/cloud/checkhybridimage/actor.py
|
||
|
+++ b/repos/system_upgrade/common/actors/cloud/checkhybridimage/actor.py
|
||
|
@@ -1,6 +1,7 @@
|
||
|
from leapp.actors import Actor
|
||
|
from leapp.libraries.actor.checkhybridimage import check_hybrid_image
|
||
|
from leapp.models import FirmwareFacts, HybridImage, InstalledRPM
|
||
|
+from leapp.reporting import Report
|
||
|
from leapp.tags import ChecksPhaseTag, IPUWorkflowTag
|
||
|
|
||
|
|
||
|
@@ -16,7 +17,7 @@ class CheckHybridImage(Actor):
|
||
|
|
||
|
name = 'checkhybridimage'
|
||
|
consumes = (InstalledRPM, FirmwareFacts)
|
||
|
- produces = (HybridImage,)
|
||
|
+ produces = (HybridImage, Report)
|
||
|
tags = (ChecksPhaseTag, IPUWorkflowTag)
|
||
|
|
||
|
def process(self):
|
||
|
--
|
||
|
2.40.1
|
||
|
|