From 52e99064c621c34c6a05a1e3f637fe1023e2906e Mon Sep 17 00:00:00 2001 From: pedro Date: Wed, 25 Sep 2024 18:07:43 -0300 Subject: [PATCH] workbench-script: remove ntplib - it was not being used - let's delegate this to Operating System --- workbench-script.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/workbench-script.py b/workbench-script.py index 628b805..1fdec4e 100644 --- a/workbench-script.py +++ b/workbench-script.py @@ -7,7 +7,6 @@ import hashlib import argparse import configparser -import ntplib import requests @@ -287,12 +286,6 @@ def send_snapshot_to_devicehub(snapshot, token, url): except: print(f"workbench: ERROR: Snapshot not remotely sent. URL '{url}' is unreachable. Do you have internet? Is your server up & running?") -@logs -def sync_time(): - # is neccessary? - ntplib.NTPClient() - response = client.request('pool.ntp.org') - def load_config(config_file="settings.ini"): """ Tries to load configuration from a config file.