Skip to content

Commit

Permalink
🐛🏷️(ozi-new interactive) fix overlapping default conditional
Browse files Browse the repository at this point in the history
Signed-off-by: rjdbcm <[email protected]>
  • Loading branch information
rjdbcm committed Jun 29, 2024
1 parent 758c91d commit 97272e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ozi/new/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@ def menu_loop(
ok_text='✔ Ok',
default=_default[0],
).run()
if result != _default:
if result in _default:
_P.copyright_head = result
output.update({'--copyright-head': [_P.copyright_head]})
case x if x and x == 'allow_file':
Expand Down Expand Up @@ -1104,7 +1104,7 @@ def menu_loop(
default=_default[0],
style=_style,
).run()
if result != _default and result is not None:
if result in _default and result is not None:
_P.ci_provider = result
output.update({'--ci-provider': [_P.ci_provider]})
case _:
Expand Down

0 comments on commit 97272e3

Please sign in to comment.