From 0676139c3f8c0587b9a481e5693b809f8c1c1384 Mon Sep 17 00:00:00 2001 From: Shubham Ganar <67952129+shubhamsg199@users.noreply.github.com> Date: Mon, 29 Jul 2024 20:28:00 +0530 Subject: [PATCH] Add password field for CR image creation (#1204) * Add password field for CR image creation Signed-off-by: Shubham Ganar * Add password field for Compute Resource Image create Signed-off-by: Shubham Ganar --------- Signed-off-by: Shubham Ganar --- nailgun/entities.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nailgun/entities.py b/nailgun/entities.py index d8218571..9cfe64c4 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -5143,6 +5143,7 @@ def __init__(self, server_config=None, **kwargs): 'user_data': entity_fields.BooleanField(), 'username': entity_fields.StringField(required=True), 'uuid': entity_fields.StringField(required=True), + 'password': entity_fields.StringField(), } super().__init__(server_config=server_config, **kwargs) self._meta = { @@ -5178,6 +5179,7 @@ def read(self, entity=None, attrs=None, ignore=None, params=None): entity = entity or self.entity_with_parent() if ignore is None: ignore = set() + ignore.add('password') ignore.add('compute_resource') ignore.add('user_data') return super().read(entity, attrs, ignore, params)