Skip to content

Commit

Permalink
Fix failure in runnung tox -e docs
Browse files Browse the repository at this point in the history
On fedora29 the tox is failing   docs: could not install deps

Signed-off-by: Galit <[email protected]>
  • Loading branch information
Galit committed May 13, 2019
1 parent 74757f0 commit c56fd8d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions automation/check-patch.packages
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ansible
bats
dnf
dnf-command(builddep)
gcc
git
grubby
libffi-devel
Expand Down
13 changes: 13 additions & 0 deletions lago/providers/libvirt/cpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#

import logging
import libvirt

from lxml import etree as ET

Expand Down Expand Up @@ -392,6 +393,18 @@ def get_cpu_props(cls, family, arch='x86'):

@classmethod
def get_cpus_by_arch(cls, arch):
conn = libvirt.open('qemu:///system')
if conn is None:
raise LagoException('Failed to open connection to qemu:///system')
models = conn.getCPUModelNames('x86_64')
conn.close()
if models:
return models[0]
else:
raise LagoException('No such arch: {0}'.format(arch))

@classmethod
def get_cpus_by_arch1(cls, arch):
"""
Get all CPUs info by arch
Expand Down

0 comments on commit c56fd8d

Please sign in to comment.