diff --git a/robottelo/hosts.py b/robottelo/hosts.py index cf949a43028..cfd4a67b76d 100644 --- a/robottelo/hosts.py +++ b/robottelo/hosts.py @@ -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')) @@ -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'))