76d5413b17
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/rteval.git#00c220d4b3204a9dc5024aba5f708f1c32fe86d1
39 lines
1.3 KiB
Diff
39 lines
1.3 KiB
Diff
From f436194dc7ecc611f2bbe693b589d7f4993ea41e Mon Sep 17 00:00:00 2001
|
|
From: John Kacur <jkacur@redhat.com>
|
|
Date: Wed, 13 Jan 2021 02:10:24 -0500
|
|
Subject: [PATCH] rteval: Fix incorrect import in sysinfo dir
|
|
|
|
Fix incorrect import in rteval/sysinfo/__init__.py
|
|
|
|
This could cause a traceback
|
|
|
|
rteval --duration=60
|
|
Traceback (most recent call last):
|
|
File "/usr/bin/rteval", line 196, in <module>
|
|
from rteval.sysinfo import dmi
|
|
File "/usr/lib/python3.6/site-packages/rteval/sysinfo/__init__.py", line 37, in <module>
|
|
import rteval.sysinfo.dmi as dmi
|
|
AttributeError: module 'rteval' has no attribute 'sysinfo'
|
|
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
---
|
|
rteval/sysinfo/__init__.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/rteval/sysinfo/__init__.py b/rteval/sysinfo/__init__.py
|
|
index 736354b6258e..0436ebb350d9 100644
|
|
--- a/rteval/sysinfo/__init__.py
|
|
+++ b/rteval/sysinfo/__init__.py
|
|
@@ -34,7 +34,7 @@ from rteval.sysinfo.memory import MemoryInfo
|
|
from rteval.sysinfo.osinfo import OSInfo
|
|
from rteval.sysinfo.network import NetworkInfo
|
|
from rteval.sysinfo.cmdline import cmdlineInfo
|
|
-import rteval.sysinfo.dmi as dmi
|
|
+from rteval.sysinfo import dmi
|
|
|
|
class SystemInfo(KernelInfo, SystemServices, dmi.DMIinfo, CPUtopology,
|
|
MemoryInfo, OSInfo, NetworkInfo, cmdlineInfo):
|
|
--
|
|
2.26.2
|
|
|