pass_typer: Also match "salt.sawtooth.claremontmakerspace.org" for cms-net-svcs

This commit is contained in:
Adam Goldsmith 2022-07-06 23:24:57 -04:00
parent 67bfff9811
commit bb68fea1b4

View File

@ -16,7 +16,7 @@ cmd = partial(subprocess.run, capture_output=True, encoding="ascii")
def alias(server_name):
match server_name.rpartition("@"):
case [user, at, "salt"]:
case [user, at, ("salt" | "salt.sawtooth.claremontmakerspace.org")]:
return f"cms/{user}{at}cms-net-svcs"
case [user, at, ("iPad1" | "iPad2" | "iPad3")]:
return f"cms/{user}{at}ipads"