Browse Source

Use virt-customize as regular user

This fixed following error running virt-customize as superuser:

 libvirt: XML-RPC error : Failed to connect socket to
 '/var/run/libvirt/libvirt-sock': No such file or directory

Depends-On: https://review.opendev.org/c/x/devstack-plugin-tobiko/+/791698
Change-Id: I311a232806112196f5e37bed42fa762af9e4f31c
changes/11/790911/4
Federico Ressi 1 month ago
parent
commit
ff5ac3e718
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      tobiko/openstack/glance/_image.py

+ 1
- 1
tobiko/openstack/glance/_image.py View File

@ -429,7 +429,7 @@ class CustomizedGlanceImageFixture(URLGlanceImageFixture):
execute = True
command += ['--install', package]
if execute:
sh.execute(command, sudo=True)
sh.execute(command)
sh.get_file(work_file, customized_file)
return customized_file


Loading…
Cancel
Save