pass_typer: Match cms-wall-display* and iPad* for CMS ipads
This commit is contained in:
parent
125ba9244c
commit
6fb8597973
@ -18,7 +18,7 @@ def alias(server_name):
|
|||||||
match server_name.rpartition("@"):
|
match server_name.rpartition("@"):
|
||||||
case [user, at, ("salt" | "salt.sawtooth.claremontmakerspace.org")]:
|
case [user, at, ("salt" | "salt.sawtooth.claremontmakerspace.org")]:
|
||||||
return f"cms/{user}{at}cms-net-svcs"
|
return f"cms/{user}{at}cms-net-svcs"
|
||||||
case [user, at, ("iPad1" | "iPad2" | "iPad3")]:
|
case [user, at, host] if host.lower().startswith("cms-wall-display") or host.startswith("iPad"):
|
||||||
return f"cms/{user}{at}ipads"
|
return f"cms/{user}{at}ipads"
|
||||||
case [user, at, ("octopi-taz-6" | "octopi-lulzbot-mini")]:
|
case [user, at, ("octopi-taz-6" | "octopi-lulzbot-mini")]:
|
||||||
return f"cms/{user}{at}octopi"
|
return f"cms/{user}{at}octopi"
|
||||||
|
Loading…
Reference in New Issue
Block a user