Skip to content

Commit

Permalink
Add batch_id param support for create errata function
Browse files Browse the repository at this point in the history
  • Loading branch information
Ximinhan committed Jun 20, 2024
1 parent 25489e0 commit 3a3a681
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions errata_tool/erratum.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def update(self, **kwargs):
if 'solution' in kwargs:
self.solution = self.fmt(kwargs['solution'])
self._update = True
if 'batch_id' in kwargs:
self.batch_id = kwargs['batch_id']
self._update = True


def __init__(self, **kwargs):

Expand Down Expand Up @@ -840,6 +844,8 @@ def _write(self):
pdata['advisory[assigned_to_email]'] = self.qe_email
if self.qe_group is not None and self.qe_group != '':
pdata['advisory[quality_responsibility_name]'] = self.qe_group
if self.batch_id is not None:
pdata['batch[id]'] = self.batch_id

if self.synopsis is None:
raise ErrataException("Can't write erratum without synopsis")
Expand Down

0 comments on commit 3a3a681

Please sign in to comment.