From 4f7c16220e6376418099e5fc775363b920d37c5c 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 --- 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),