Skip to content

Commit

Permalink
Fix upload_manifest to handle case where manifest.content is not set (#…
Browse files Browse the repository at this point in the history
…13819)

Update upload_manifest to handle case where manifest.content is not set

Signed-off-by: Gaurav Talreja <[email protected]>
(cherry picked from commit 6013181)
  • Loading branch information
Gauravtalreja1 authored and web-flow committed Jan 19, 2024
1 parent 609af4f commit 3e18a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robottelo/host_helpers/satellite_mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3e18a44

Please sign in to comment.