From b949b1b4b01113615f878e29f58b1c23484a1b78 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Fri, 7 Jan 2022 14:18:18 +0800 Subject: [PATCH] (query,insert,other):fix cluster compatbility --- tests/pytest/util/dnodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/pytest/util/dnodes.py b/tests/pytest/util/dnodes.py index 235e4d25e0..b45e5b96c3 100644 --- a/tests/pytest/util/dnodes.py +++ b/tests/pytest/util/dnodes.py @@ -231,7 +231,7 @@ class TDDnode: # self.cfg("logDir",self.logDir) # print(updatecfgDict) isFirstDir = 1 - if updatecfgDict[0] and updatecfgDict[0][0]: + if bool(updatecfgDict) and updatecfgDict[0] and updatecfgDict[0][0]: print(updatecfgDict[0][0]) for key,value in updatecfgDict[0][0].items(): if value == 'dataDir' : -- GitLab