From 1d0a3968550095b0ec822437097eb8bd25e73e8e Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Thu, 14 Nov 2024 12:33:16 -0500 Subject: [PATCH] Fix for registration command packages (#1225) (#1242) 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 60455664..0f142be4 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -6522,7 +6522,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),