• Guido Günther's avatar
    Sanitize domain name · 45f63dc3
    Guido Günther authored
    If one pastes from the output of virt-sansbox-image
    
      $ virt-sandbox-image list
      docker:/library/ubuntu?tag=17.04
      docker:/library/debian?tag=latest
    
    verbatim
    
      $ virt-sandbox-image run -c qemu:///session docker:/library/debian?tag=latest
    
    This fails like
    
      Unable to start sandbox: Failed to create domain: XML error: name library/debian:qbeilwxard cannot contain '/'
    
    so don't allow invalid chars like '/' in domain names
    Signed-off-by: Guido Günther's avatarGuido Günther <agx@sigxcpu.org>
    Reviewed-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
    45f63dc3
Name
Last commit
Last update
bin Loading commit data...
build-aux Loading commit data...
docs Loading commit data...
examples Loading commit data...
libvirt-sandbox Loading commit data...
m4 Loading commit data...
po Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
AUTHORS.in Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
GNUmakefile Loading commit data...
HACKING Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
README Loading commit data...
TODO Loading commit data...
autobuild.sh Loading commit data...
autogen.sh Loading commit data...
cfg.mk Loading commit data...
configure.ac Loading commit data...
gtk-doc.make Loading commit data...
libvirt-sandbox-1.0.pc.in Loading commit data...
libvirt-sandbox.spec.in Loading commit data...
maint.mk Loading commit data...