Skip to content

Commit d82271a

Browse files
authored
Fix molecule matrix with no scenario name. (#4400)
1 parent 946153a commit d82271a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/molecule/command/matrix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,6 @@ def matrix(
9494
args: MoleculeArgs = ctx.obj.get("args")
9595
command_args: CommandArgs = {"subcommand": subcommand}
9696

97-
s = scenarios.Scenarios(base.get_configs(args, command_args), [scenario_name])
97+
scenario_names = [] if scenario_name is None else [scenario_name]
98+
s = scenarios.Scenarios(base.get_configs(args, command_args), scenario_names)
9899
s.print_matrix()

0 commit comments

Comments
 (0)