Revision 0a865080

b/lib/backend.py
2030 2030
  export_script = inst_os.export_script
2031 2031

  
2032 2032
  logfile = _InstanceLogName("export", inst_os.name, instance.name)
2033
  if not os.path.exists(constants.LOG_OS_DIR):
2034
    os.mkdir(constants.LOG_OS_DIR, 0750)
2035 2033

  
2036 2034
  real_disk = _OpenRealBD(disk)
2037 2035

  
......
2184 2182
  import_script = inst_os.import_script
2185 2183

  
2186 2184
  logfile = _InstanceLogName("import", instance.os, instance.name)
2187
  if not os.path.exists(constants.LOG_OS_DIR):
2188
    os.mkdir(constants.LOG_OS_DIR, 0750)
2189 2185

  
2190 2186
  comprcmd = "gunzip"
2191 2187
  impcmd = utils.BuildShellCmd("(cd %s; %s >%s 2>&1)", inst_os.path,

Also available in: Unified diff