Skip to content

Commit

Permalink
fix handle options in tmt try
Browse files Browse the repository at this point in the history
  • Loading branch information
Ismail Ibrahim Quwarah committed Jun 27, 2024
1 parent f788244 commit 83d190f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tmt/trying.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,10 +402,9 @@ def action_quit(self, plan: Plan) -> None:
def handle_options(self, plan: Plan) -> None:
"""Choose requested cli option"""

option = [o for o in self.cli_options if self.opt(o)]
if not option:
return
getattr(self, f"handle_{option[0]}")(plan)
for o in self.cli_options:
if self.opt(o):
getattr(self, f"handle_{o}")(plan)

def handle_epel(self, plan: Plan) -> None:
""" Enable EPEL repository"""
Expand Down

0 comments on commit 83d190f

Please sign in to comment.