Skip to content

Commit

Permalink
use args correctly for execute()
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Nov 17, 2020
1 parent 3e04535 commit 32e800a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/molecule/command/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def section_logger(func: Callable) -> Callable:
sectioner = get_sectioner()

def wrapper(*args, **kwargs):
scenario = args[1].scenario.name
subcommand = args[2]
scenario = args[0]._config.scenario.name
subcommand = util.underscore(args[0].__class__.__name__)
section_id = f"{scenario}.{subcommand}"

sectioner.print_header(
Expand Down

0 comments on commit 32e800a

Please sign in to comment.