We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0567d36 commit f26b106Copy full SHA for f26b106
patroni/postgresql/__init__.py
@@ -1357,7 +1357,7 @@ def move_data_directory(self) -> None:
1357
os.unlink(source)
1358
os.symlink(new_name, source)
1359
1360
- new_name = '{0}.{1}'.format(self._data_dir, postfix)
+ new_name = '{0}.{1}'.format(self._data_dir.rstrip(os.sep), postfix)
1361
logger.info('renaming data directory to %s', new_name)
1362
if os.path.exists(new_name):
1363
shutil.rmtree(new_name)
0 commit comments