Skip to content

Commit e7ddf6d

Browse files
committed
cmdeploy: make --ssh-host expect '@docker' instead of 'docker'
1 parent e3c77a5 commit e7ddf6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmdeploy/src/cmdeploy/cmdeploy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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():
366366
def 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}")

0 commit comments

Comments
 (0)