workbench-script: bugfix when url is used

This commit is contained in:
pedro 2024-11-08 20:14:08 +01:00
parent 55eec35d58
commit 12209c84fa
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ def save_snapshot_in_disk(snapshot, path):
def send_snapshot_to_devicehub(snapshot, token, url, legacy): def send_snapshot_to_devicehub(snapshot, token, url, legacy):
url_components = urllib.parse.urlparse(url) url_components = urllib.parse.urlparse(url)
ev_path = "evidence/{}".format(snapshot["uuid"]) ev_path = "evidence/{}".format(snapshot["uuid"])
components = (url_components.schema, url_components.netloc, ev_path, '', '', '') components = (url_components.scheme, url_components.netloc, ev_path, '', '', '')
ev_url = urllib.parse.urlunparse(components) ev_url = urllib.parse.urlunparse(components)
# apt install qrencode # apt install qrencode