Просмотр исходного кода

Fixes mount_os for missing OS in Windows

Alessandro Pilotti 9 лет назад
Родитель
Сommit
a6ce0811ec
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      coriolis/osmorphing/osmount/windows.py

+ 2 - 0
coriolis/osmorphing/osmount/windows.py

@@ -88,6 +88,8 @@ class WindowsMountTools(base.BaseOSMountTools):
             if self._conn.test_path("%sWindows\\System32" % fs_root):
                 return fs_root, [], None
 
+        raise exception.OperatingSystemNotFound("root partition not found")
+
     def dismount_os(self, dirs):
         for dir in dirs:
             drive_letter = dir.split(":")[0]