From e39a63e659457fb5c5a4e5e75f7058c4162ef6d9 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Thu, 14 Sep 2023 03:35:14 -0400 Subject: [PATCH] [6.13.z] Fix regression from cloned manifest failover (#12616) --- robottelo/host_helpers/satellite_mixins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robottelo/host_helpers/satellite_mixins.py b/robottelo/host_helpers/satellite_mixins.py index b934e7d2495..bbf2c882c06 100644 --- a/robottelo/host_helpers/satellite_mixins.py +++ b/robottelo/host_helpers/satellite_mixins.py @@ -140,8 +140,9 @@ def upload_manifest(self, org_id, manifest=None, interface='API', timeout=None): :returns: the manifest upload result """ - if manifest.content is None: - manifest = clone() + if not isinstance(manifest, (bytes, io.BytesIO)): + if manifest.content is None: + manifest = clone() if timeout is None: # Set the timeout to 1500 seconds to align with the API timeout. timeout = 1500000