Commit fe496b25 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Migrate lib/ from constants to pathutils

File system paths moved from constants to pathutils.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent b3a6f851
......@@ -53,6 +53,7 @@ except AttributeError:
from ganeti import constants
from ganeti import errors
from ganeti import utils
from ganeti import pathutils
# Schemas used in OVF format
......@@ -1080,13 +1081,13 @@ class OVFImporter(Converter):
if self.options.output_dir:
self.output_dir = os.path.abspath(self.options.output_dir)
if (os.path.commonprefix([constants.EXPORT_DIR, self.output_dir]) !=
if (os.path.commonprefix([pathutils.EXPORT_DIR, self.output_dir]) !=
logging.warning("Export path is not under %s directory, import to"
" Ganeti using gnt-backup may fail",
self.output_dir = constants.EXPORT_DIR
self.output_dir = pathutils.EXPORT_DIR
self.ovf_reader = OVFReader(self.input_path)
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