mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-24 18:05:07 +00:00
fix(services): route a service remote from services.<TAG>.dl.remote
Click picks the subcommand before the dl callback applies the service config, so Services.resolve_command now applies remote and server first. A REST API job routes from its request only.
This commit is contained in:
@@ -22,7 +22,7 @@ SERVED = [
|
||||
|
||||
|
||||
def _make(name: str) -> click.Command:
|
||||
return Services.make_remote_command(name, ctx=click.Context(click.Command("dl")))
|
||||
return Services.make_remote_command(name, None)
|
||||
|
||||
|
||||
def test_unknown_name_raises_with_typed_name_and_available_list() -> None:
|
||||
|
||||
Reference in New Issue
Block a user