summaryrefslogtreecommitdiffstats
path: root/tools/lib/pomfile.py
diff options
context:
space:
mode:
authorMichael Dürre <michael.duerre@highstreet-technologies.com>2023-01-04 15:45:22 +0100
committerDan Timoney <dtimoney@att.com>2023-02-24 17:48:45 +0000
commit7af1cbec0a8cf3259e9de3d705c05a89ddc6ba24 (patch)
treec9e21427b6bcbab4a6ff04b83ec6c1a50e329bd2 /tools/lib/pomfile.py
parent3e62ff8cff9edba9fd3810742e91b7bd488d29ba (diff)
update parents to chlorine
update parent poms to odl chlorine sr1 Issue-ID: CCSDK-3831 Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Change-Id: I9fa4c61d3dd0a2efc6313fc505b5b4d43977abca Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com> Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Diffstat (limited to 'tools/lib/pomfile.py')
-rw-r--r--tools/lib/pomfile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/lib/pomfile.py b/tools/lib/pomfile.py
index 35dfd5a3..88bfa90e 100644
--- a/tools/lib/pomfile.py
+++ b/tools/lib/pomfile.py
@@ -34,7 +34,8 @@ class PomFile:
# /project/dependencies/dependency[groupId=org.opendaylight.netconf]/version
# value: value to set
def setXmlValue(self, valuePath, value, replaceMultiple=False) -> bool:
-
+ if value is None:
+ return False
found=False
pathToFind = XPath(valuePath)
pattern = re.compile('<([^>^\ ^?^!]+)')