Skip to content

Commit

Permalink
Fixed issue extracting MPN
Browse files Browse the repository at this point in the history
  • Loading branch information
marcserrat committed Apr 7, 2022
1 parent 8b28d86 commit c943d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reports/ms_products/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ def populate_ta_cache(parameters, client):
for tc in tcs:
if tc['product']['id'] not in TC_CACHE:
TC_CACHE[tc['product']['id']] = {}
TC_CACHE[tc['product']['id']][tc['account']['id']] = get_param_value(tc['configuration']['params'], 'tier1_mpn')
TC_CACHE[tc['product']['id']][tc['account']['id']] = get_param_value(tc['params'], 'tier1_mpn')

def get_param_value(params, param_id):
for param in params:
if param_id == param['id']:
return param['value']
return param['value'] if 'value' in param else '-'
return '-'

0 comments on commit c943d10

Please sign in to comment.