]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
GlusterFS: Use image_utils for tempfile creation
authorCsaba Henk <chenk@redhat.com>
Sat, 16 Aug 2014 15:49:00 +0000 (16:49 +0100)
committerCsaba Henk <chenk@redhat.com>
Wed, 20 Aug 2014 05:00:57 +0000 (06:00 +0100)
commit875ce5238fb1669a61305c8160381cc831a1a57f
treea0a8ba0225f2db207abf0ce9e045b1803c3bb79b
parent134377586bd4faa215ba816ed4326259ca30cd79
GlusterFS: Use image_utils for tempfile creation

Besides the aesthetical aspect of replacing ad-hoc code
with an utility function, it's more correct
to perform image conversions in CONF.image_conversion_dir,
which is taken care by the image_utils.temporary_file()
context guard.

Change-Id: Ied5607156f0ab1f1f8cfc889d5b57f3486d6b407
cinder/tests/test_glusterfs.py
cinder/volume/drivers/glusterfs.py