提交 e00edef0 编写于 作者: J Junxiang Li

Fix the regex error

We need compare the length instead of the tuple
Signed-off-by: NJunxiang Li <junli@redhat.com>
上级 4b3190ab
......@@ -218,7 +218,7 @@ class Probe(object):
release = UNKNOWN_DISTRO_RELEASE
match = self._get_version_match()
if match is not None:
if match.groups() > 1:
if len(match.groups()) > 1:
release = match.groups()[1]
return release
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册