From 9c294087e4cebf04bc87b32ffd3afdf8f91a2436 Mon Sep 17 00:00:00 2001 From: Eric Harney Date: Thu, 3 Jan 2013 15:08:53 -0500 Subject: [PATCH] Fix cmds clearing in TargetAdminTestCase. clear_cmds() should reference self.cmds rather than cmds. Change-Id: I1d191aee6a713cf9f2b08c46bf47c1959235cc15 --- cinder/tests/test_iscsi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinder/tests/test_iscsi.py b/cinder/tests/test_iscsi.py index eafc5301a..a724ad321 100644 --- a/cinder/tests/test_iscsi.py +++ b/cinder/tests/test_iscsi.py @@ -56,7 +56,7 @@ class TargetAdminTestCase(object): return "", None def clear_cmds(self): - cmds = [] + self.cmds = [] def verify_cmds(self, cmds): self.assertEqual(len(cmds), len(self.cmds)) -- 2.45.2