Assign local variable in api.v2.image_data
Assign local variable in api.v2.image_data

If local variable 'image' will be not initialized we get UnboundLocalError
while handle following exceptions:
exception.StorageFull
exception.StorageQuotaFull
exception.ImageSizeLimitExceeded
exception.StorageWriteDenied
webob.exc.HTTPError
ValueError

This is because not initialized variable 'image' used as argument of
method _restore. That is why we should initialize it.

Closes-Bug: #1310952

Change-Id: I3bf73ca272aad479416067495006476934a01dd9

dims/glance,scripnichenko/glance,saeki-masaki/glance,kfwang/Glance-OVA-OVF,ozamiatin/glance,rajalokan/glance,akash1808/glance,wkoathp/glance,jumpstarter-io/glance,klmitch/glance,saeki-masaki/glance,tanglei528/glance,sigmavirus24/glance,stevelle/glance,kfwang/Glance-OVA-OVF,sigmavirus24/glance,jumpstarter-io/glance,openstack/glance,paramite/glance,openstack/glance,JioCloud/glance,darren-wang/gl,darren-wang/gl,redhat-openstack/glance,klmitch/glance,rajalokan/glance,openstack/glance,akash1808/glance,scripnichenko/glance,JioCloud/glance,takeshineshiro/glance,redhat-openstack/glance,dims/glance,wkoathp/glance,paramite/glance,takeshineshiro/glance,ozamiatin/glance,stevelle/glance,tanglei528/glance,vuntz/glance,vuntz/glance