]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix None being passed into as_int().
authorMatthew Treinish <treinish@linux.vnet.ibm.com>
Tue, 27 Nov 2012 15:41:25 +0000 (10:41 -0500)
committerMatthew Treinish <treinish@linux.vnet.ibm.com>
Tue, 27 Nov 2012 15:58:00 +0000 (10:58 -0500)
commit3fe5bd6a7112315a978be38a9e51a1787b300af3
tree9a190a3db7e889cff66be3eced461222f6eaa7d4
parent461ae5443d1816eefa1bd8877a4b085a5cb7fda3
Fix None being passed into as_int().

Currently when a create is received and the size is of NoneType
a stack trace is dumped because of the TypeError. This will
correct it so the functionality won't change, but the TypeError
is will be caught now.

Change-Id: Ic83dd182e0083c887af8f6209a23af38bfff2be7
cinder/volume/api.py