@@ -498,13 +498,9 @@ def stop_env_migration_progress(self, success: bool = True) -> None:
498498 """Stop the environment migration progress."""
499499
500500 @abc .abstractmethod
501- def log_pre_check_warnings (
502- self ,
503- pre_check_warnings : t .List [t .Tuple [str , t .List [str ]]],
504- pre_check_only : bool ,
505- ) -> bool :
501+ def log_pre_check_warnings (self , pre_check_warnings : t .List [str ], pre_check_only : bool ) -> bool :
506502 """
507- Log warnings emitted by pre-check scripts and ask user whether they'd like to
503+ Log warnings emitted by pre-checks and ask user whether they'd like to
508504 proceed with the migration (true) or not (false).
509505 """
510506
@@ -673,11 +669,7 @@ def update_env_migration_progress(self, num_tasks: int) -> None:
673669 def stop_env_migration_progress (self , success : bool = True ) -> None :
674670 pass
675671
676- def log_pre_check_warnings (
677- self ,
678- pre_check_warnings : t .List [t .Tuple [str , t .List [str ]]],
679- pre_check_only : bool ,
680- ) -> bool :
672+ def log_pre_check_warnings (self , pre_check_warnings : t .List [str ], pre_check_only : bool ) -> bool :
681673 return True
682674
683675 def start_state_export (
@@ -1490,16 +1482,11 @@ def stop_env_migration_progress(self, success: bool = True) -> None:
14901482 if success :
14911483 self .log_success ("Environments migrated successfully" )
14921484
1493- def log_pre_check_warnings (
1494- self ,
1495- pre_check_warnings : t .List [t .Tuple [str , t .List [str ]]],
1496- pre_check_only : bool ,
1497- ) -> bool :
1485+ def log_pre_check_warnings (self , pre_check_warnings : t .List [str ], pre_check_only : bool ) -> bool :
14981486 if pre_check_warnings :
1499- for pre_check , warnings in pre_check_warnings :
1500- tree = Tree (f"[bold]Pre-migration warnings for { pre_check } [/bold]" )
1501- for warning in warnings :
1502- tree .add (f"[yellow]{ warning } [/yellow]" )
1487+ tree = Tree (f"[bold]Pre-migration warnings[/bold]" )
1488+ for warning in pre_check_warnings :
1489+ tree .add (f"[yellow]{ warning } [/yellow]" )
15031490
15041491 self ._print (tree )
15051492
0 commit comments