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]>
  • Loading branch information
Gauravtalreja1 authored Jan 19, 2024
1 parent 48dc4d0 commit 6013181
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 6013181

Please sign in to comment.