Skip to content

Commit

Permalink
[AP-1229] Make state file pretty (#976)
Browse files Browse the repository at this point in the history
* make state file pretty

* added sort_keys option
  • Loading branch information
amofakhar authored Jun 14, 2022
1 parent eae385d commit b717f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelinewise/fastsync/commons/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def load_json(path):
def save_dict_to_json(path, data):
LOGGER.info('Saving new state file to %s', path)
with open(path, 'w', encoding='utf-8') as fil:
fil.write(json.dumps(data))
fil.write(json.dumps(data, indent=4, sort_keys=True))


def check_config(config, required_keys):
Expand Down

0 comments on commit b717f49

Please sign in to comment.