Fix docs version parsing 25/94725/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 21 Jan 2021 22:54:28 +0000 (23:54 +0100)
committerRobert Varga <nite@hq.sk>
Mon, 25 Jan 2021 13:31:44 +0000 (13:31 +0000)
We do not want to pick just any <version> tag that comes first,
as that well may be parent/version.

Change-Id: Ic51ca768f42de498dd86f470f839e64a063c1dd4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
docs/conf.py

index 57d8120..7093f9d 100644 (file)
@@ -15,6 +15,6 @@ import xml.etree.ElementTree as ET
 from docs_conf.conf import *
 
 data = ET.parse('pom.xml')
-project_version = data.getroot().find('*//{http://maven.apache.org/POM/4.0.0}version').text
+project_version = data.getroot().find('./{http://maven.apache.org/POM/4.0.0}version').text
 version = project_version
 release = project_version

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.