mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 03:07:56 +00:00
longevity: Fix station count comparison.
Evidently, cannot compare a string to an int and get expected result, so cast to int explicitly. Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
@@ -144,7 +144,7 @@ class L3VariableTimeLongevity(LFCliBase):
|
||||
sta_count = m.group(1)
|
||||
print("AP line: %s"%(line))
|
||||
print("sta-count: %s"%(sta_count))
|
||||
if (sta_count != self.total_stas):
|
||||
if (int(sta_count) != int(self.total_stas)):
|
||||
print("WARNING: Cisco Controller reported %s stations, should be %s"%(sta_count, self.total_stas))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user