From 15d93883af4a363375c5e91fcf5f1738c62ce56b Mon Sep 17 00:00:00 2001 From: omkarkhatavkar Date: Thu, 9 Nov 2023 16:09:45 +0530 Subject: [PATCH] fixed the type error for some remaining entities --- nailgun/entities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nailgun/entities.py b/nailgun/entities.py index b1ec4fe8..fe18435f 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -8081,7 +8081,7 @@ def create(self, create_missing=None): `_. """ - return type(self)( + return TailoringFile( self._server_config, id=self.create_json(create_missing)['id'], ).read() @@ -8529,7 +8529,7 @@ def create(self, create_missing=None): `_. """ - return type(self)( + return ScapContents( self._server_config, id=self.create_json(create_missing)['id'], ).read() @@ -8648,7 +8648,7 @@ def create(self, create_missing=None): """ self._fields['event'] = entity_fields.StringField(required=True, choices=self.get_events()) - return type(self)( + return Webhooks( self._server_config, id=self.create_json(create_missing)['id'], ).read()