From cc02b652637247ef030fe67e565ae5302b9b89b5 Mon Sep 17 00:00:00 2001 From: pedro Date: Tue, 15 Oct 2024 13:53:57 +0200 Subject: [PATCH] workbench: use url instead of public_url --- workbench-script.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workbench-script.py b/workbench-script.py index 15388df..275647a 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -320,11 +320,11 @@ def send_snapshot_to_devicehub(snapshot, token, url): try: response = json.loads(response_text) - if response.get('public_url'): + if response.get('url'): # apt install qrencode - qr = "echo {} | qrencode -t ANSI".format(response['public_url']) + qr = "echo {} | qrencode -t ANSI".format(response['url']) print(exec_cmd(qr)) - print("public_url: {}".format(response['public_url'])) + print("url: {}".format(response['url'])) if response.get("dhid"): print("dhid: {}".format(response['dhid'])) except Exception: