From db6d6587f63d64ac59fbbdf62b6feb441693f3e6 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:31:54 -0500 Subject: [PATCH] Fix for registration command packages (#1225) (#1243) it is a space separated string not a list https://apidocs.theforeman.org/foreman/latest/apidoc/v2/registration_commands/create.html (cherry picked from commit 4f7c16220e6376418099e5fc775363b920d37c5c) Co-authored-by: dosas --- nailgun/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nailgun/entities.py b/nailgun/entities.py index 3f29b28f..54205590 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -6811,7 +6811,7 @@ def __init__(self, server_config=None, **kwargs): 'jwt_expiration': entity_fields.IntegerField(default=4), 'repo': entity_fields.StringField(default=''), 'repo_gpg_key_url': entity_fields.URLField(default=''), - 'packages': entity_fields.ListField(default=[]), + 'packages': entity_fields.StringField(), 'update_packages': entity_fields.BooleanField(default=False), 'force': entity_fields.BooleanField(default=False), 'ignore_subman_errors': entity_fields.BooleanField(default=False),