From be87592cc7dfb9ec4ff57922215bb549835fbbe1 Mon Sep 17 00:00:00 2001 From: vsedmik <46570670+vsedmik@users.noreply.github.com> Date: Wed, 4 Sep 2024 16:00:59 +0200 Subject: [PATCH] Fix for teardown failures (#16211) --- robottelo/hosts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robottelo/hosts.py b/robottelo/hosts.py index 05d548f6780..d9278c94fee 100644 --- a/robottelo/hosts.py +++ b/robottelo/hosts.py @@ -691,7 +691,7 @@ def register( if force: options['force'] = str(force).lower() - self._satellite = target + self._satellite = target.satellite cmd = target.satellite.cli.HostRegistration.generate_command(options) return self.execute(cmd.strip('\n')) @@ -703,7 +703,7 @@ def api_register(self, target, **kwargs): :return: The result of the API call. """ kwargs['insecure'] = kwargs.get('insecure', True) - self._satellite = target + self._satellite = target.satellite command = target.satellite.api.RegistrationCommand(**kwargs).create() return self.execute(command.strip('\n'))