workbench-script: remove ntplib
- it was not being used - let's delegate this to Operating System
This commit is contained in:
parent
500531d15f
commit
a22773076c
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue