From 48dddccc296a7d79eb05c7c7bb4d4c1bd02573ee Mon Sep 17 00:00:00 2001 From: omkarkhatavkar Date: Fri, 8 Mar 2024 13:18:10 +0530 Subject: [PATCH] fixed sanity suite, AttributeError due to not matching scope --- robottelo/host_helpers/satellite_mixins.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/robottelo/host_helpers/satellite_mixins.py b/robottelo/host_helpers/satellite_mixins.py index 0997bad3b83..3c26862c3bf 100644 --- a/robottelo/host_helpers/satellite_mixins.py +++ b/robottelo/host_helpers/satellite_mixins.py @@ -145,10 +145,8 @@ def upload_manifest(self, org_id, manifest=None, interface='API', timeout=None): :returns: the manifest upload result """ - if ( - not isinstance(manifest, bytes | io.BytesIO) - and not hasattr(manifest, 'content') - or manifest.content is None + if not isinstance(manifest, bytes | io.BytesIO) and ( + not hasattr(manifest, 'content') or manifest.content is None ): manifest = clone() if timeout is None: