]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
NetApp NFS: Do not reference dst_img_local before assignment
authorAlex Meade <mr.alex.meade@gmail.com>
Thu, 17 Apr 2014 15:42:05 +0000 (11:42 -0400)
committerAlex Meade <mr.alex.meade@gmail.com>
Mon, 5 May 2014 12:54:48 +0000 (08:54 -0400)
commit48a53d32ee243d80b034b38e292e9bfb4b66f881
treed2f2264e55f80618bffc0175a174bef3a303bf69
parentd756766ff108b600b887fccf60a8623e32f26f25
NetApp NFS: Do not reference dst_img_local before assignment

This patch moves the assignment of the dst_img_local variable to before the
try/finally block that references it so that the finally block will have this
variable no matter where in the try block an error is raised.

Change-Id: Iab48b46559f18a3d6b044abe4bc3e615e7fee075
Closes-Bug: 1309047
cinder/tests/test_netapp_nfs.py
cinder/volume/drivers/netapp/nfs.py