rollback unwanted changes

This commit is contained in:
pedro 2024-12-09 19:02:50 +01:00
parent 8dfdabdac2
commit 810486771f

3
workbench-script.py Executable file → Normal file
View file

@ -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)