Re: [PATCH libvirt-sanbox] image: ignore OSError on listdir()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Aug 04, 2016 at 05:01:37PM +0400, marcandre.lureau@xxxxxxxxxx wrote:
> From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> 
> If the directory to list is missing, don't raise an exception but
> return empty list instead. This fixes for example running
> "virt-sandbox-image list" without a
> ~/.local/share/libvirt/templates/virt-builder.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>
> ---
>  libvirt-sandbox/image/sources/docker.py      | 18 +++++++++++++++---
>  libvirt-sandbox/image/sources/virtbuilder.py |  6 +++++-
>  2 files changed, 20 insertions(+), 4 deletions(-)
>  mode change 100644 => 100755 libvirt-sandbox/image/sources/docker.py
>  mode change 100644 => 100755 libvirt-sandbox/image/sources/virtbuilder.py

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]