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 pondrejk committed Nov 9, 2023
1 parent 0e9edb5 commit 9d5768f
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 @@ -8082,7 +8082,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 @@ -8530,7 +8530,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 @@ -8649,7 +8649,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 9d5768f

Please sign in to comment.