From bcc2ffdbf904a885813ed2007411b0c93936e9f1 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Tue, 10 Dec 2019 21:54:02 -0500 Subject: [PATCH] Fix version_compare with nxos_snmp_user tests (#65527) Signed-off-by: Paul Belanger --- .../integration/targets/nxos_snmp_user/tests/common/sanity.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/targets/nxos_snmp_user/tests/common/sanity.yaml b/test/integration/targets/nxos_snmp_user/tests/common/sanity.yaml index 7f70cbeeb67..e1d8212552c 100644 --- a/test/integration/targets/nxos_snmp_user/tests/common/sanity.yaml +++ b/test/integration/targets/nxos_snmp_user/tests/common/sanity.yaml @@ -5,7 +5,7 @@ - set_fact: delete_last_user_allowed='true' - set_fact: delete_last_user_allowed='false' - when: imagetag and (imagetag is version_compare('9.1', 'ge')) + when: imagetag and (major_version is version_compare('9.1', 'ge')) - set_fact: delete_last_user_allowed='false' when: platform is search('N5K|N6K|N9K-F')