summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJannik Schönartz2021-06-01 15:06:21 +0200
committerJannik Schönartz2021-06-01 15:06:21 +0200
commit98fb86087f59fc7e35d8c4a08e65aaf06cac0a9a (patch)
treed4ebc50eed423182c5d5b8b0513a2af177d1bec2
parent[bas-python] Support multiple urls (diff)
downloadsystemd-init-98fb86087f59fc7e35d8c4a08e65aaf06cac0a9a.tar.gz
systemd-init-98fb86087f59fc7e35d8c4a08e65aaf06cac0a9a.tar.xz
systemd-init-98fb86087f59fc7e35d8c4a08e65aaf06cac0a9a.zip
[bas-python] Add path to edid data
-rwxr-xr-xmodules.d/bas-python/scripts/collect_hw_info_json.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules.d/bas-python/scripts/collect_hw_info_json.py b/modules.d/bas-python/scripts/collect_hw_info_json.py
index 4d874791..6070fa85 100755
--- a/modules.d/bas-python/scripts/collect_hw_info_json.py
+++ b/modules.d/bas-python/scripts/collect_hw_info_json.py
@@ -166,7 +166,7 @@ def get_edid():
if dp == '': continue
edid_hex = open(dp, 'rb').read().hex()
if len(edid_hex) > 0:
- edid.append(edid_hex)
+ edid.append({ 'path': dp, 'edid': edid_hex })
return edid
def get_lshw():
@@ -201,7 +201,7 @@ def prepare_contacts(contact_list):
return contacts
def send_post(url, payload):
- headers = { 'Content-type': 'application/json', 'Accept': 'text/plain' }
+ # headers = { 'Content-type': 'application/json', 'Accept': 'text/plain' }
# req = requests.post(url, json=payload, headers=headers)
req = requests.post(url, json=payload)
print("POST-Request Response: \n")