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 55957c2 commit 74a7bc4
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 @@ -7935,7 +7935,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 @@ -8383,7 +8383,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 @@ -8502,7 +8502,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 74a7bc4

Please sign in to comment.