Re: [PATCH v2 sandbox] virt-sandbox-image: switch to use URI to identify templates

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

 



On Tue, Sep 22, 2015 at 09:13:53AM +0200, Cedric Bosdonnat wrote:
> On Mon, 2015-09-21 at 22:11 +0200, Cedric Bosdonnat wrote:
> > On Mon, 2015-09-21 at 15:45 +0100, Daniel P. Berrange wrote:
> > > +        tmpl = template.Template.from_uri(args.template)
> > > +        source = tmpl.get_source_impl()
> > > +        source.download_template(template=tmpl,
> > > +                                 templatedir=args.template_dir)
> > >      except IOError,e:
> > >          print "Source %s cannot be found in given path" %args.source
> 
> This IOError exception message should be rephrased or handled with the
> general Exception.

Opps, yes, still accessing the deleted cli arg field.


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]