From 063ac02e6d350a02b6cce2eb4fad9376f0a365a5 Mon Sep 17 00:00:00 2001 From: Omkar Khatavkar Date: Fri, 8 Mar 2024 14:08:40 +0530 Subject: [PATCH] fixed sanity suite, AttributeError due to not matching scope (#14309) --- 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: