From f62e367e60c8700da7cbcd78b36f3d6ad3a31940 Mon Sep 17 00:00:00 2001 From: Adarsh dubey Date: Mon, 7 Aug 2023 13:09:44 +0530 Subject: [PATCH] Changing return value for Discovery create method (#978) Signed-off-by: Adarsh Dubey --- nailgun/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()