From ff9b93b3120a8cf27cf2af17fd6062e13591dd0c Mon Sep 17 00:00:00 2001 From: Prince Sunny Date: Wed, 8 May 2019 13:20:41 -0700 Subject: [PATCH] Return 0 for CRM counter instead of None if no match (#879) --- tests/test_crm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_crm.py b/tests/test_crm.py index 33d83fcc844f..ff73e744f6d5 100644 --- a/tests/test_crm.py +++ b/tests/test_crm.py @@ -15,6 +15,8 @@ def getCrmCounterValue(dvs, key, counter): if k[0] == counter: return int(k[1]) + return 0 + def setReadOnlyAttr(dvs, obj, attr, val):