From 810486771f1970b98c61677dece8405fa2688aca Mon Sep 17 00:00:00 2001 From: pedro Date: Mon, 9 Dec 2024 19:02:50 +0100 Subject: [PATCH] rollback unwanted changes --- workbench-script.py | 3 --- 1 file changed, 3 deletions(-) mode change 100755 => 100644 workbench-script.py diff --git a/workbench-script.py b/workbench-script.py old mode 100755 new mode 100644 index fa36f7d..d70bb71 --- a/workbench-script.py +++ b/workbench-script.py @@ -310,9 +310,6 @@ def save_snapshot_in_disk(snapshot, path, snap_uuid): def send_snapshot_to_devicehub(snapshot, token, url): url_components = urllib.parse.urlparse(url) - if isinstance(snapshot, str): - snapshot = json.loads(snapshot) - ev_path = "evidence/{}".format(snapshot["uuid"]) components = (url_components.scheme, url_components.netloc, ev_path, '', '', '') ev_url = urllib.parse.urlunparse(components)