Skip to content

Commit

Permalink
Fix for teardown failures (#16211)
Browse files Browse the repository at this point in the history
(cherry picked from commit 36f2ecc)
  • Loading branch information
vsedmik authored and web-flow committed Sep 4, 2024
1 parent 09b13b4 commit 49f1815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robottelo/hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,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'))

Expand All @@ -689,7 +689,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'))

Expand Down

0 comments on commit 49f1815

Please sign in to comment.