From a68c9fc4f46f5f8f580c08e97dabdea6bfbcdcd7 Mon Sep 17 00:00:00 2001 From: vsedmik <46570670+vsedmik@users.noreply.github.com> Date: Mon, 9 Oct 2023 23:58:03 +0200 Subject: [PATCH] Fix lce id option in host registration (#12849) (cherry picked from commit 2f3484e18a10873eb8bed975fd78bdc059fa4ca7) --- robottelo/hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robottelo/hosts.py b/robottelo/hosts.py index cb052796172..ef04881b5e5 100644 --- a/robottelo/hosts.py +++ b/robottelo/hosts.py @@ -769,7 +769,7 @@ def register( raise ValueError('Global registration method can be used with Satellite/Capsule only') if lifecycle_environment is not None: - options['lifecycle_environment_id'] = lifecycle_environment.id + options['lifecycle-environment-id'] = lifecycle_environment.id if operating_system is not None: options['operatingsystem-id'] = operating_system.id if hostgroup is not None: