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