mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Add log message about tasklist generation
Generating the tasklist takes >1s, so it's nice to know what bootstrap-vz is actually doing.
This commit is contained in:
parent
8b4b2701fb
commit
73c2305a4c
1 changed files with 4 additions and 2 deletions
|
@ -91,9 +91,13 @@ def run(manifest, debug=False, pause_on_error=False, dry_run=False):
|
|||
:params bool pause_on_error: Whether to pause on error, before rollback
|
||||
:params bool dry_run: Don't actually run the tasks
|
||||
"""
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
# Get the tasklist
|
||||
from tasklist import load_tasks
|
||||
from tasklist import TaskList
|
||||
log.info('Generating tasklist')
|
||||
tasks = load_tasks('resolve_tasks', manifest)
|
||||
tasklist = TaskList(tasks)
|
||||
# 'resolve_tasks' is the name of the function to call on the provider and plugins
|
||||
|
@ -102,8 +106,6 @@ def run(manifest, debug=False, pause_on_error=False, dry_run=False):
|
|||
from bootstrapinfo import BootstrapInformation
|
||||
bootstrap_info = BootstrapInformation(manifest=manifest, debug=debug)
|
||||
|
||||
import logging
|
||||
log = logging.getLogger(__name__)
|
||||
try:
|
||||
# Run all the tasks the tasklist has gathered
|
||||
tasklist.run(info=bootstrap_info, dry_run=dry_run)
|
||||
|
|
Loading…
Add table
Reference in a new issue