@@ -29,7 +29,9 @@ def create_port_forwards(ecs_manifest, aws_region, aws_account, parsed_container
2929 container_name = container .name
3030 container_ports = container .port_forward
3131 if ecs_manifest .copy_method == "sftp" :
32- container_ports .append (f"{ container .sftp_config .port } :{ container .sftp_config .port } " )
32+ container_ports .append (
33+ f"{ container .sftp_config .port } :{ container .sftp_config .port } "
34+ )
3335 for container_port in container_ports :
3436 from_port = container_port .split (":" )[0 ]
3537 to_port = container_port .split (":" )[1 ]
@@ -126,7 +128,14 @@ def run_sftp_sync_thread(ecs_manifest, aws_region, aws_account, parsed_container
126128 for volume in container .volumes :
127129 _from , _ = volume .split (":" )
128130 event_handler = SynchronizeSFTPEventHandler (
129- target , aws_region , aws_account , volume , container .volumes_excludes , port , username , password
131+ target ,
132+ aws_region ,
133+ aws_account ,
134+ volume ,
135+ container .volumes_excludes ,
136+ port ,
137+ username ,
138+ password ,
130139 )
131140 event_handlers .append (event_handler )
132141 observer .schedule (event_handler , _from , recursive = True )
@@ -319,7 +328,9 @@ def install_netcat_command(target, aws_region, aws_account) -> None:
319328 )
320329
321330
322- def install_sshd_client (target , aws_region , aws_account , auto_install_override , port , user , password ) -> None :
331+ def install_sshd_client (
332+ target , aws_region , aws_account , auto_install_override , port , user , password
333+ ) -> None :
323334 DEBUG_EASYECS = os .environ .get ("DEBUG_EASYECS" , None )
324335 client = boto3 .client ("ssm" )
325336 if len (auto_install_override ) > 0 :
@@ -447,9 +458,15 @@ def run_sftp_commands(
447458 else :
448459 if not has_sshd and auto_install_sftp :
449460 install_sshd_client (
450- ssm_target , aws_region , aws_account , auto_install_override , container .sftp_config .port , container .sftp_config .user , container .sftp_config .password
461+ ssm_target ,
462+ aws_region ,
463+ aws_account ,
464+ auto_install_override ,
465+ container .sftp_config .port ,
466+ container .sftp_config .user ,
467+ container .sftp_config .password ,
451468 )
452- time .sleep (2 ) # Wait a bit for sshd to be ready
469+ time .sleep (2 ) # Wait a bit for sshd to be ready
453470 run_sshd_command (
454471 parsed_containers ,
455472 aws_region ,
0 commit comments