Skip to content

Commit

Permalink
optimize config parser
Browse files Browse the repository at this point in the history
  • Loading branch information
koho committed Nov 5, 2019
1 parent 839de6f commit dc013e1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ez_deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,11 @@ def main():
if value is None:
continue
pk, sep, sk = name.partition('_')
if not pk:
continue
if sk:
if pk not in config:
config[pk] = {}
config[pk][sk] = value
else:
config[pk] = value
Expand Down

0 comments on commit dc013e1

Please sign in to comment.