Added sending software string to registry

This patch adds sending the APRSD signature and url
along with the regsitry request.
This commit is contained in:
Hemna 2024-02-27 11:05:41 -05:00
parent 1ad2e135dc
commit 8264c94bd6
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import logging
from oslo_config import cfg
import requests
import aprsd
from aprsd import stats
from aprsd import threads as aprsd_threads
@ -34,6 +35,8 @@ class APRSRegistryThread(aprsd_threads.APRSDThread):
"description": CONF.registry.description,
"service_website": CONF.registry.service_website,
"uptime": stats.APRSDStats().uptime,
"software": f"APRSD version {aprsd.__version__} "
"https://github.com/craigerl/aprsd",
}
try:
requests.post(