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 <addubey@redhat.com>
  • Loading branch information
adarshdubey-star authored Aug 7, 2023
1 parent 4694e95 commit f62e367
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 f62e367

Please sign in to comment.