Use len instead of for loop to get the end index
Bug #1282084 reported by
Wu Wenxiang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Wu Wenxiang |
Bug Description
diff --git a/cinder/
index 37d528f..2548cbd 100644
--- a/cinder/
+++ b/cinder/
@@ -109,8 +109,7 @@ class TSMBackupSimulator:
- for idx, backup in enumerate(
- index = idx
+ index = len(self.
del self._backup_
if not len(self.
Changed in cinder: | |
milestone: | none → icehouse-3 |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | icehouse-3 → 2014.1 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/74718
Review: https:/