Skip to content

Commit

Permalink
[cfggen] Fix a bug in --var-json option with multi-keys (#1015)
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyl-ms authored and lguohan committed Oct 6, 2017
1 parent b07886e commit 7fa502a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-config-engine/sonic-cfggen
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def main():
print template.render(data)

if args.var_json != None:
print json.dumps(data[args.var_json], indent=4, cls=minigraph_encoder)
print json.dumps(FormatConverter.to_serialized(data[args.var_json]), indent=4, cls=minigraph_encoder)

if args.write_to_db:
configdb = ConfigDBConnector()
Expand Down

0 comments on commit 7fa502a

Please sign in to comment.