Skip to content

Commit

Permalink
[6.16.z] Fix for teardown failures (#16212)
Browse files Browse the repository at this point in the history
Fix for teardown failures (#16211)

(cherry picked from commit 36f2ecc)

Co-authored-by: vsedmik <[email protected]>
  • Loading branch information
Satellite-QE and vsedmik authored Sep 4, 2024
1 parent 09b13b4 commit 7486394
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 7486394

Please sign in to comment.