Skip to content

Commit

Permalink
Fix an issue in cfggen that always printing alias mapping (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
taoyl-ms authored Feb 23, 2017
1 parent 40fdde5 commit dc7c7b1
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 @@ -103,7 +103,7 @@ def main():
for key in data[args.var_keys].keys():
print key

if args.alias_mapping != None:
if args.alias_mapping:
mapping = {}
if data.has_key('alias_map'):
for item in data['alias_map']:
Expand Down

0 comments on commit dc7c7b1

Please sign in to comment.