From ad8910354c0a6243cd6deb789ae858fc9329ea33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 21 Sep 2018 18:41:22 +0200 Subject: [PATCH] SWU: Fix CLI updating Closes #2712 --- src/octoprint/plugins/softwareupdate/cli.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/octoprint/plugins/softwareupdate/cli.py b/src/octoprint/plugins/softwareupdate/cli.py index 42e7629b9..62d253198 100644 --- a/src/octoprint/plugins/softwareupdate/cli.py +++ b/src/octoprint/plugins/softwareupdate/cli.py @@ -124,7 +124,8 @@ def commands(cli_group, pass_octoprint_ctx, *args, **kwargs): if targets: data["check"] = targets - client = create_client(apikey=apikey, + client = create_client(settings=cli_group.settings, + apikey=apikey, host=host, port=port, httpuser=httpuser, @@ -191,9 +192,9 @@ def commands(cli_group, pass_octoprint_ctx, *args, **kwargs): flags["seen_close"] = True click.echo("Disconnected from server...") - socket = client.connect_socket(on_message=on_message, - on_open=on_open, - on_close=on_close) + socket = client.create_socket(on_message=on_message, + on_open=on_open, + on_close=on_close) r = client.post_json("plugin/softwareupdate/update", data=data) try: