Skip to content

Commit

Permalink
Restore the .json extension on ytree files.
Browse files Browse the repository at this point in the history
This was removed with os.path.join() was introduced.  Other parts of the
code expect the files to end in .json.  Without this the JS-based YANG
trees are broken.
  • Loading branch information
jclarke-csco committed Feb 17, 2024
1 parent 3e170cb commit 698649c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensearch_indexing/build_yindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def build_indices(

yindexes = json.loads(f.getvalue())

with open(os.path.join(json_ytree, name_revision), 'w') as writer:
with open(os.path.join(json_ytree, name_revision + '.json'), 'w') as writer:
try:
emit_tree([parsed_module], writer, ctx)
except Exception:
Expand Down

0 comments on commit 698649c

Please sign in to comment.