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
This commit is contained in:
Federico Ressi 2021-05-12 09:57:53 +02:00
parent 6a56f0f0fb
commit ff5ac3e718
1 changed files with 1 additions and 1 deletions

View File

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