diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lib/pomfile.py | 3 | ||||
-rwxr-xr-x | tools/migrateOdlParents.py | 2 |
2 files changed, 3 insertions, 2 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('<([^>^\ ^?^!]+)') diff --git a/tools/migrateOdlParents.py b/tools/migrateOdlParents.py index e608c779..a7175b8b 100755 --- a/tools/migrateOdlParents.py +++ b/tools/migrateOdlParents.py @@ -164,7 +164,7 @@ class OdlParentMigrator: bgpVersion = self.getMvnRepoVersion('org.opendaylight.bgpcep','topology-api') controllerVersion = self.getMvnRepoVersion('org.opendaylight.controller', 'blueprint') mdsalVersion=self.getMvnRepoVersion('org.opendaylight.mdsal','mdsal-binding-api') - netconfVersion = self.getMvnRepoVersion('org.opendaylight.netconf','ietf-netconf') + netconfVersion = self.getMvnRepoVersion('org.opendaylight.netconf','netconf-impl') pomFile = PomFile(os.path.abspath(self.parentPath+'/dependencies-odl-bom/pom.xml')) x = pomFile.setXmlValue('/project/dependencyManagement/dependencies/dependency[artifactId=bgp-artifacts]/version',bgpVersion) |