diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-11-18 08:47:37 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-11-18 08:47:37 +0200 |
commit | b5ddc105852b63651916f322ce855baf61d129d0 (patch) | |
tree | d6e6ee6ca6f0ecfbba1311879e87e77a720a49c9 /subplot/client.py | |
parent | 24ffcb0083750bb77963a1ab8e3205290c2c7190 (diff) | |
download | obnam2-b5ddc105852b63651916f322ce855baf61d129d0.tar.gz |
feat! change client config to take a base URL instead of host, port
Diffstat (limited to 'subplot/client.py')
-rw-r--r-- | subplot/client.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/subplot/client.py b/subplot/client.py index f159e74..7556986 100644 --- a/subplot/client.py +++ b/subplot/client.py @@ -14,13 +14,11 @@ def install_obnam(ctx): def configure_client(ctx, filename=None): get_file = globals()["get_file"] - assert ctx.get("server_name") is not None - assert ctx.get("server_port") is not None + assert ctx.get("server_url") is not None config = get_file(filename) config = yaml.safe_load(config) - config["server_name"] = ctx["server_name"] - config["server_port"] = ctx["server_port"] + config["server_url"] = ctx["server_url"] with open(filename, "w") as f: yaml.safe_dump(config, stream=f) |