From f63e5e6f39f808274a57f078df974d182c7debaa 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 (cherry picked from commit f62e367e60c8700da7cbcd78b36f3d6ad3a31940) --- nailgun/entities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()