Skip to content

Commit

Permalink
Fix for teardown failures (SatelliteQE#16211)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsedmik authored and jyejare committed Oct 19, 2024
1 parent 27649bf commit be87592
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 @@ -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'))

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

Expand Down

0 comments on commit be87592

Please sign in to comment.