Message ID | 20220603161224.10947-3-jkacur@redhat.com |
---|---|
State | New |
Headers | show |
Series | [1/7] rteval: rteval-cmd: Use "with" with open | expand |
diff --git a/rteval/modules/loads/stressng.py b/rteval/modules/loads/stressng.py index d084814142fb..d0772ce77662 100644 --- a/rteval/modules/loads/stressng.py +++ b/rteval/modules/loads/stressng.py @@ -69,7 +69,7 @@ class Stressng(CommandLineLoad): cpus[n] = [c for c in cpus[n] if str(c) in expand_cpulist(self.cpulist)] # remove nodes with no cpus available for running - for node, cpu in list(cpus.items()): + for node, cpu in cpus.items(): if not cpu: nodes.remove(node) self._log(Log.DEBUG, "node %s has no available cpus, removing" % node)
Remove unnecessary word list around cpus.items() Signed-off-by: John Kacur <jkacur@redhat.com> --- rteval/modules/loads/stressng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)