From 84fe64d9578e72321d90c41d5984dbdee6dfea1b Mon Sep 17 00:00:00 2001 From: dosas Date: Thu, 5 Sep 2024 15:05:20 +0200 Subject: [PATCH] Fix for registration command packages 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 188f2531..e9fc251a 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -6792,7 +6792,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),