From 088ef12088b987184f5d349c79de20b5f81ad50e 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 (cherry picked from commit c23c324815fb5a5ca42d4ad4cdfc272b906928b8) --- nailgun/entities.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nailgun/entities.py b/nailgun/entities.py index 77cceed6..68d55c9a 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -8082,7 +8082,7 @@ def create(self, create_missing=None): `_. """ - return type(self)( + return TailoringFile( self._server_config, id=self.create_json(create_missing)['id'], ).read() @@ -8530,7 +8530,7 @@ def create(self, create_missing=None): `_. """ - return type(self)( + return ScapContents( self._server_config, id=self.create_json(create_missing)['id'], ).read() @@ -8649,7 +8649,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()