提交 500b4d34 编写于 作者: J Jamie McAtamney 提交者: Xin Zhang

Fix issue with removed function in Behave step

上级 8922315e
......@@ -215,9 +215,10 @@ def impl(context, mod_count, table, schema, dbname):
def get_mod_count_in_state_file(dbname, schema, table):
file = get_latest_aostate_file(dbname)
comma_name = ','.join([schema, table])
for line in get_lines_from_file(file):
if comma_name in line:
return line.split(',')[2]
with open(file) as fd:
for line in fd:
if comma_name in line:
return line.split(',')[2].strip()
return -1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册