]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
typos(?) in create_snapshots_in_db
authorYusuke Hayashi <hayashi-yusuke@jp.fujitsu.com>
Sat, 25 Jul 2015 12:49:33 +0000 (21:49 +0900)
committerYusuke Hayashi <hayashi-yusuke@jp.fujitsu.com>
Sat, 25 Jul 2015 12:53:29 +0000 (12:53 +0000)
Other variables are used in line 783 (snap) and 784 (snapshot)
of cinder.volume.api.

Since it looks typo, I fix it.

Change-Id: I3f1aa3b71166e882c751362792fbf90477ecbd38
Closes-Bug: #1478236

cinder/volume/api.py

index 1d0f6ae118f220b7911cc8af309239d90c1a0970..d8043cce735245ebe235fb6ee27927ef9f1761a9 100644 (file)
@@ -781,7 +781,7 @@ class API(base.Base):
             with excutils.save_and_reraise_exception():
                 try:
                     for snap in snapshot_list:
-                        snapshot.destroy()
+                        snap.destroy()
                 finally:
                     QUOTAS.rollback(context, reservations)