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()