Skip to content

Commit

Permalink
[bugfix] create fg will use resource name (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengaofei authored Dec 13, 2024
1 parent 21090ff commit 5097d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tzrec/tools/create_fg_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
reserves.append(column.strip())
fg_json["reserves"] = reserves

fg_path = os.path.join(args.fg_output_dir, "fg.json")
fg_name = args.fg_resource_name if args.fg_resource_name else "fg.json"
fg_path = os.path.join(args.fg_output_dir, fg_name)
with open(fg_path, "w") as f:
json.dump(fg_json, f, indent=4)

Expand Down

0 comments on commit 5097d1d

Please sign in to comment.