Skip to content

Commit 431a437

Browse files
committed
fix sw_cversions check ERROR
1 parent 3d07f6c commit 431a437

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

aci-preupgrade-validation-script.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3282,7 +3282,7 @@ def telemetryStatsServerP_object_check(index, total_checks, sw_cversion=None, tv
32823282
print_title(title, index, total_checks)
32833283

32843284
if not sw_cversion or not tversion:
3285-
print_result(title, MANUAL, 'Current and target Switch version not supplied. Skipping.')
3285+
print_result(title, MANUAL, 'Current or target Switch version not supplied. Skipping.')
32863286
return MANUAL
32873287

32883288
if sw_cversion.older_than("4.2(4d)") and tversion.newer_than("5.2(2d)"):
@@ -4205,8 +4205,8 @@ def unsupported_fec_configuration_ex_check(index, total_checks, sw_cversion, tve
42054205
doc_url = 'https://datacenter.github.io/ACI-Pre-Upgrade-Validation-Script/validations/#unsupported-fec-configuration-for-n9k-c93180yc-ex'
42064206
print_title(title, index, total_checks)
42074207

4208-
if not tversion:
4209-
print_result(title, MANUAL, "Target version not supplied. Skipping.")
4208+
if not sw_cversion or not tversion:
4209+
print_result(title, MANUAL, "Switch or Target switch version not supplied. Skipping.")
42104210
return MANUAL
42114211

42124212
if sw_cversion.older_than('5.0(1a)') and tversion.newer_than("5.0(1a)"):

0 commit comments

Comments
 (0)