Skip to content

Commit 7578f08

Browse files
author
maksymbelei95
authored
[show] Use proper variable to avoid exception in natshow script (sonic-net#1383)
* Substituting nat_entry variable, instead of s inside fetch_translations function to avoid exception throwing inside the function due to undefined variable. The issue has introduced in be63918, while migrating to Python 3. Variable s has replaced with nat_entry. Signed-off-by: Maksym Belei <Maksym_Belei@jabil.com>
1 parent 910d284 commit 7578f08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/natshow

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class NatShow(object):
134134
translated_dst = "---"
135135
translated_src = "---"
136136

137-
ent = self.asic_db.get_all('ASIC_DB', s, blocking=True)
137+
ent = self.asic_db.get_all('ASIC_DB', nat_entry, blocking=True)
138138

139139
nat_type = nat['nat_type']
140140

0 commit comments

Comments
 (0)