Skip to content

Commit

Permalink
do not move from_advisory to old state
Browse files Browse the repository at this point in the history
  • Loading branch information
thegreyd committed Jul 7, 2023
1 parent 3ff177e commit e47de00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions elliottlib/cli/move_builds_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ def move_builds_cli(runtime, from_advisory, to_advisory, kind, only, noop):

# remove builds
from_erratum = errata.Advisory(errata_id=from_advisory)
old_state = from_erratum.errata_state
from_erratum.ensure_state('NEW_FILES')
from_erratum.remove_builds(build_nvrs)
if old_state != 'NEW_FILES':
from_erratum.ensure_state(old_state)
# we do not attempt to move advisory to old state since without builds ET doesn't allow advisory to move to QE

# add builds
to_erratum = errata.Advisory(errata_id=to_advisory)
Expand Down

0 comments on commit e47de00

Please sign in to comment.