Revision 7be85163 lib/hypervisor/hv_kvm.py

b/lib/hypervisor/hv_kvm.py
381 381
    utils.RemoveFile(uid_file)
382 382
    if uid is not None:
383 383
      uidpool.ReleaseUid(uid)
384
    shutil.rmtree(cls._InstanceNICDir(instance_name))
384
    try:
385
      shutil.rmtree(cls._InstanceNICDir(instance_name))
386
    except OSError, err:
387
      if err.errno != errno.ENOENT:
388
        raise
385 389
    try:
386 390
      chroot_dir = cls._InstanceChrootDir(instance_name)
387 391
      utils.RemoveDir(chroot_dir)

Also available in: Unified diff