]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix typo in image_utils tempfile handling
authorVishvananda Ishaya <vishvananda@gmail.com>
Fri, 21 Dec 2012 17:33:22 +0000 (09:33 -0800)
committerVishvananda Ishaya <vishvananda@gmail.com>
Fri, 21 Dec 2012 17:34:51 +0000 (09:34 -0800)
commitc2e9e2f37804e1fe55830e221df584844c5390f2
treee7fa8cdd9775f8b60f5948dd4a4daf5b915ef76e
parentcbcd340c67c914e38342471c8a1a0aba984c15ff
Fix typo in image_utils tempfile handling

Commit cbcd340 changed from NamedTemporaryFile to mkstemp, but
mkstemp returns a file descripter, not a file object. We therefore
need to close the fd using os.close(). This was tested using
devstack.

Change-Id: I808fa470a141e249fe30ee762ee94f47ecfd3f63
cinder/image/image_utils.py