1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Add a comment about the - version split

This commit is contained in:
Ross McFarland
2020-11-19 06:35:13 -08:00
committed by GitHub
parent e02a8b3858
commit 5e13d5009a

View File

@@ -183,6 +183,8 @@ class PowerDnsBaseProvider(BaseProvider):
version = resp.json()['version']
self.log.debug('powerdns_version: got version %s from server',
version)
# The extra `-` split is to handle pre-release and source built
# versions like 4.5.0-alpha0.435.master.gcb114252b
self._powerdns_version = [
int(p.split('-')[0]) for p in version.split('.')[:3]]