Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ghooo committed May 20, 2022
1 parent 5f48c97 commit 663ae2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic_config_updater/gu_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ def _get_path_tokens_from_type_1_list(self, model, token_index, xpath_tokens, co
# Example:
# xpath: /sonic-dot1p-tc-map:sonic-dot1p-tc-map/DOT1P_TO_TC_MAP/DOT1P_TO_TC_MAP_LIST[name='Dot1p_to_tc_map1']/DOT1P_TO_TC_MAP[dot1p='2']
# path: /DOT1P_TO_TC_MAP/Dot1p_to_tc_map1/2
if len(xpath_tokens)-1 == token_index:
if token_index+1 >= len(xpath_tokens):
return path_tokens

# Checking if the next_token is actually a child leaf of the inner type 1 list, for which case
Expand Down

0 comments on commit 663ae2b

Please sign in to comment.