Skip to content

Commit

Permalink
[scripts/config] Sort remove_paths and remove_groups
Browse files Browse the repository at this point in the history
To have a definitive order for them.
  • Loading branch information
ypid committed Feb 9, 2021
1 parent 9641d4c commit 56ad0d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/config
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,10 @@ if __name__ == "__main__":

config['datetime'] = int(time.time())

if 'remove_paths' in config['platform']:
config['platform']['remove_paths'] = sorted(config['platform']['remove_paths'])
if 'remove_groups' in config['platform']:
config['platform']['remove_groups'] = sorted(config['platform']['remove_groups'])

with open(config_file, 'w') as outfile:
yaml.dump(config, outfile, default_flow_style=False)

0 comments on commit 56ad0d2

Please sign in to comment.