diff --git a/nailgun/entities.py b/nailgun/entities.py index f436a3e1..9c023b92 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -1496,7 +1496,7 @@ def create(self, create_missing=None): `_. """ - return type(self)( + return DiscoveryRule( self._server_config, id=self.create_json(create_missing)['id'], ).read()