From 46fe7d321dd45c337be599a566a9a858cf25f328 Mon Sep 17 00:00:00 2001 From: Gaurav Talreja Date: Fri, 19 Jan 2024 12:29:41 +0530 Subject: [PATCH] Fix upload_manifest to handle case where manifest.content is not set (#13819) Update upload_manifest to handle case where manifest.content is not set Signed-off-by: Gaurav Talreja (cherry picked from commit 60131818ac9574a78f118a2fbcd62d9773045ea0) --- robottelo/host_helpers/satellite_mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robottelo/host_helpers/satellite_mixins.py b/robottelo/host_helpers/satellite_mixins.py index c0ff987bc2c..3bd17096852 100644 --- a/robottelo/host_helpers/satellite_mixins.py +++ b/robottelo/host_helpers/satellite_mixins.py @@ -145,7 +145,7 @@ def upload_manifest(self, org_id, manifest=None, interface='API', timeout=None): """ if not isinstance(manifest, bytes | io.BytesIO): - if manifest.content is None: + if not hasattr(manifest, 'content') or manifest.content is None: manifest = clone() if timeout is None: # Set the timeout to 1500 seconds to align with the API timeout.