From 779a8e5dc97591bbee1e138de8531074edae4084 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 f433541d..58a0e102 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -7722,7 +7722,7 @@ def create(self, create_missing=None): `_. """ - return type(self)( + return TailoringFile( self._server_config, id=self.create_json(create_missing)['id'], ).read() @@ -8169,7 +8169,7 @@ def create(self, create_missing=None): `_. """ - return type(self)( + return ScapContents( self._server_config, id=self.create_json(create_missing)['id'], ).read() @@ -8288,7 +8288,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()