diff --git a/nailgun/entities.py b/nailgun/entities.py index 05dc9ceb..d39d3cca 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()