提交 60540718 编写于 作者: W Wei Jiangang

sr_iov_irqbalance: remove unused pattern string

Maybe the variable 'service_status_filter is intended to
be the pattern param for re.search(),
But re.search() adopts character string directly.
So It becomes meaningless.
上级 858d6ea6
......@@ -53,7 +53,6 @@ def get_guest_service_status(session, service):
"""
cmd = "service %s status" % service
output = session.cmd_output(cmd)
service_status_filter = "running|active"
if re.search("running|active", output, re.I):
status = "active"
elif re.search("stopped|inactive", output, re.I):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册