Commit 9c492c2d authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Migrate lib/masterd/instance.py from constants to pathutils



File system paths moved from constants to pathutils.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent b87ee98f
...@@ -33,6 +33,7 @@ from ganeti import compat ...@@ -33,6 +33,7 @@ from ganeti import compat
from ganeti import utils from ganeti import utils
from ganeti import objects from ganeti import objects
from ganeti import netutils from ganeti import netutils
from ganeti import pathutils
class _ImportExportError(Exception): class _ImportExportError(Exception):
...@@ -1227,7 +1228,7 @@ class ExportInstanceHelper: ...@@ -1227,7 +1228,7 @@ class ExportInstanceHelper:
transfers.append(None) transfers.append(None)
continue continue
path = utils.PathJoin(constants.EXPORT_DIR, "%s.new" % instance.name, path = utils.PathJoin(pathutils.EXPORT_DIR, "%s.new" % instance.name,
dev.physical_id[1]) dev.physical_id[1])
finished_fn = compat.partial(self._TransferFinished, idx) finished_fn = compat.partial(self._TransferFinished, idx)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment