From 94ed5454857aca31a0b6a0e915b483e00cafc9e7 Mon Sep 17 00:00:00 2001 From: dosas Date: Thu, 14 Nov 2024 13:58:33 +0100 Subject: [PATCH] Fix for registration command packages (#1225) 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) --- nailgun/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nailgun/entities.py b/nailgun/entities.py index fec36673..3b07d2b0 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -6728,7 +6728,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),