From 85d2069f2845b6ac6a85c5389f2e4cf704e531fc Mon Sep 17 00:00:00 2001 From: Gaurav Talreja Date: Thu, 18 Jan 2024 02:16:51 +0530 Subject: [PATCH] Update upload_manifest to handle case where manifest.content is not set Signed-off-by: Gaurav Talreja --- 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 4b56326f8c1..1a53bcd0158 100644 --- a/robottelo/host_helpers/satellite_mixins.py +++ b/robottelo/host_helpers/satellite_mixins.py @@ -146,7 +146,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.