Skip to content

Commit

Permalink
Changing return value for Discovery create method (#978)
Browse files Browse the repository at this point in the history
Signed-off-by: Adarsh Dubey <[email protected]>
(cherry picked from commit f62e367)
  • Loading branch information
adarshdubey-star authored and web-flow committed Aug 7, 2023
1 parent c064d4e commit a3baab2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -1496,7 +1496,7 @@ def create(self, create_missing=None):
<https://bugzilla.redhat.com/show_bug.cgi?id=1381129>`_.
"""
return type(self)(
return DiscoveryRule(
self._server_config,
id=self.create_json(create_missing)['id'],
).read()
Expand Down

0 comments on commit a3baab2

Please sign in to comment.