Skip to content

Commit

Permalink
Fix regression from cloned manifest failover (SatelliteQE#12605)
Browse files Browse the repository at this point in the history
This PR adds a check to resolve a regression in `upload_manifest`
introduced by SatelliteQE#12515.
  • Loading branch information
synkd authored and shweta83 committed Apr 10, 2024
1 parent e85072f commit 01094e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions robottelo/host_helpers/satellite_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,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
Expand Down

0 comments on commit 01094e9

Please sign in to comment.