Skip to content
Snippets Groups Projects
Commit c3a9e36a authored by hammonds's avatar hammonds
Browse files

Merge branch 'data-directory-map-fix' into 'master'

Data Directory Map Fix

See merge request DM/data-management!4
parents 94ea0b9d 0c62f56d
No related branches found
No related merge requests found
...@@ -82,7 +82,8 @@ class GenParamsTab(QWidget): ...@@ -82,7 +82,8 @@ class GenParamsTab(QWidget):
continue continue
original = entry.split(':')[0] original = entry.split(':')[0]
replacement = entry.split(':')[1] replacement = entry.split(':')[1]
dirPath = dirPath.replace(original,replacement) if dirPath.startswith(original):
dirPath = dirPath.replace(original,replacement)
return self.assembleUrl(scheme, host, port, dirPath) return self.assembleUrl(scheme, host, port, dirPath)
@classmethod @classmethod
......
...@@ -301,7 +301,8 @@ class DmCli(object): ...@@ -301,7 +301,8 @@ class DmCli(object):
continue continue
original = entry.split(':')[0] original = entry.split(':')[0]
replacement = entry.split(':')[1] replacement = entry.split(':')[1]
dirPath = dirPath.replace(original,replacement) if dirPath.startswith(original):
dirPath = dirPath.replace(original,replacement)
return self.assembleUrl(scheme, host, port, dirPath) return self.assembleUrl(scheme, host, port, dirPath)
@classmethod @classmethod
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment