Skip to content

Commit ed75cf8

Browse files
author
Shuxian Cai
committed
cheap fix for field changes generator
1 parent abbdfb2 commit ed75cf8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/generate-field-diffs-tf-upgrade/generate_field_changes.py

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ def process_field_path(path, root):
2727
def extract_kind_name(filename):
2828
with open(filename, 'r') as fp:
2929
row = fp.readlines()[17:18]
30+
kw = row[0].split(": ")[0].rstrip()
31+
if not "kind" in kw: # It can also be line #17
32+
with open(filename, 'r') as fp:
33+
row = fp.readlines()[16:17]
3034
return row[0].split(": ")[1].rstrip()
3135

3236
# has_description_changes_only returns true if there are description changes only.

0 commit comments

Comments
 (0)