Skip to content

Commit

Permalink
fixed the type error for some remaining entities
Browse files Browse the repository at this point in the history
(cherry picked from commit c23c324)
  • Loading branch information
omkarkhatavkar authored and web-flow committed Nov 9, 2023
1 parent caf2216 commit 779a8e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -7722,7 +7722,7 @@ def create(self, create_missing=None):
<https://bugzilla.redhat.com/show_bug.cgi?id=1381129>`_.
"""
return type(self)(
return TailoringFile(
self._server_config,
id=self.create_json(create_missing)['id'],
).read()
Expand Down Expand Up @@ -8169,7 +8169,7 @@ def create(self, create_missing=None):
<https://bugzilla.redhat.com/show_bug.cgi?id=1381129>`_.
"""
return type(self)(
return ScapContents(
self._server_config,
id=self.create_json(create_missing)['id'],
).read()
Expand Down Expand Up @@ -8288,7 +8288,7 @@ def create(self, create_missing=None):
"""
self._fields['event'] = entity_fields.StringField(required=True, choices=self.get_events())

return type(self)(
return Webhooks(
self._server_config,
id=self.create_json(create_missing)['id'],
).read()
Expand Down

0 comments on commit 779a8e5

Please sign in to comment.