File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ def run_cmd(args, out):
9999 pyinf = "pyinfra --dry" if args .dry_run else "pyinfra"
100100
101101 cmd = f"{ pyinf } --ssh-user root { ssh_host } { deploy_path } -y"
102- if ssh_host in ["localhost" , "docker" ]:
102+ if ssh_host in ["localhost" , "@ docker" ]:
103103 cmd = f"{ pyinf } @local { deploy_path } -y"
104104
105105 if version .parse (pyinfra .__version__ ) < version .parse ("3" ):
@@ -366,7 +366,7 @@ def get_parser():
366366def get_sshexec (ssh_host : str , verbose = True ):
367367 if ssh_host in ["localhost" , "@local" ]:
368368 return LocalExec (verbose , docker = False )
369- elif ssh_host == "docker" :
369+ elif ssh_host == "@ docker" :
370370 return LocalExec (verbose , docker = True )
371371 if verbose :
372372 print (f"[ssh] login to { ssh_host } " )
You can’t perform that action at this time.
0 commit comments