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