rollback unwanted changes
This commit is contained in:
parent
8dfdabdac2
commit
810486771f
3
workbench-script.py
Executable file → Normal file
3
workbench-script.py
Executable file → Normal file
|
@ -310,9 +310,6 @@ def save_snapshot_in_disk(snapshot, path, snap_uuid):
|
||||||
def send_snapshot_to_devicehub(snapshot, token, url):
|
def send_snapshot_to_devicehub(snapshot, token, url):
|
||||||
url_components = urllib.parse.urlparse(url)
|
url_components = urllib.parse.urlparse(url)
|
||||||
|
|
||||||
if isinstance(snapshot, str):
|
|
||||||
snapshot = json.loads(snapshot)
|
|
||||||
|
|
||||||
ev_path = "evidence/{}".format(snapshot["uuid"])
|
ev_path = "evidence/{}".format(snapshot["uuid"])
|
||||||
components = (url_components.scheme, 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)
|
||||||
|
|
Loading…
Reference in a new issue