Skip to content

Commit

Permalink
Update yaml_filter.py (micro-ROS#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 authored Jul 26, 2021
1 parent 53c60de commit ce41dcb
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/yaml_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
repos_keep = yaml.safe_load(open(sys.argv[1]))['keep'].split()

target = {'repositories': {}}

if repos_info:
for key in repos_info["repositories"]:
if key in repos_keep:
target['repositories'][key] = repos_info["repositories"][key]

for key in repos_info["repositories"]:
if key in repos_keep:
target['repositories'][key] = repos_info["repositories"][key]

print(yaml.dump(target))
print(yaml.dump(target))

0 comments on commit ce41dcb

Please sign in to comment.