cinder/cinder
wangxiyuan f3d66c3254 Fix NoneType has no attribute get error
If volume_type is None and then create volumes with allow-multiattach,
Cinder-schduler will raise error:
AttributeError: 'NoneType' object has no attribute 'get'

Ied42d13b642617dd239ea92c019354b90657821a didn't fix it completely.
The error still exists. Here is the reproduce command:
"cinder create 1 ----allow-multiattach"

Because that the volume_type is always in the "request_spec", if
users doesn't pass it, its value is None.

Change-Id: I1140234dd69a644dcbf6fc3a01f382ee101624b2
Related-bug: #1683431
2017-06-07 17:18:18 +08:00
..
api Merge "Add Generic Volume Group Into Quota Management" 2017-06-07 09:06:15 +00:00
backup Ceph: Fix delete backup with non-existent pool 2017-06-01 20:40:04 +08:00
brick Give more time for LVM deactivation 2017-04-28 14:14:16 -05:00
cmd Merge "Make cinder-manage online migrations more verbose" 2017-03-27 10:14:48 +00:00
common Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
compute Modernize the nova client in cinder 2017-05-07 19:22:03 +02:00
config Add warning header to opts.py file 2017-06-05 13:00:44 -05:00
consistencygroup Merge "Add quota limit check and enhance roll back for cg create" 2017-03-20 13:13:08 +00:00
db Return metadata in volume summary 2017-06-02 09:08:22 +08:00
group Fix for Group API update to include check policy 2017-04-13 03:54:43 -04:00
hacking Using assertFalse(A) instead of assertEqual(False, A) 2017-06-06 11:04:27 +08:00
image Fix support for AMI image conversion 2017-06-02 16:32:23 +02:00
interface Fix some format error in docstrings 2017-03-30 10:01:18 +08:00
keymgr Remove log translations 2017-03-19 14:59:57 +00:00
locale Imported Translations from Zanata 2016-10-15 07:34:30 +00:00
message Improve help for periodic message_reap_interval 2017-04-19 10:03:52 -05:00
objects Merge "Trivial fix typos" 2017-06-01 21:27:02 +00:00
scheduler Fix NoneType has no attribute get error 2017-06-07 17:18:18 +08:00
tests Fix NoneType has no attribute get error 2017-06-07 17:18:18 +08:00
transfer Trivial fix typos while reading code 2017-05-04 10:27:57 +07:00
volume Merge "Mark Reduxio driver as unsupported" 2017-06-07 05:41:29 +00:00
wsgi Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
zonemanager Trivial fix typos 2017-06-01 09:25:28 +07:00
__init__.py Set EVENTLET_NO_GREENDNS for IPv6 and dnspython compat 2016-11-11 13:19:07 -06:00
context.py Remove log translations 2017-03-19 14:59:57 +00:00
coordination.py coordination: remove un-used method is_active() 2017-05-18 21:17:52 +02:00
exception.py GPFS: Handle unsupported operations with an exception 2017-05-23 01:30:52 -04:00
flow_utils.py Fix logging traceback in service logs 2016-12-20 12:39:07 +05:30
i18n.py Remove log translations 2017-03-19 14:59:57 +00:00
manager.py Add service dynamic log change/query 2017-05-16 13:37:35 +02:00
opts.py Add warning header to opts.py file 2017-06-05 13:00:44 -05:00
policy.py Use to_policy_values for enforcing policy 2016-09-13 01:13:15 +00:00
quota.py Periodic task to clean expired reservation 2017-05-30 22:21:38 +08:00
quota_utils.py Add Generic Volume Group Into Quota Management 2017-05-26 01:43:23 +00:00
rpc.py Merge "Remove old oslo.messaging transport aliases" 2017-03-27 16:34:25 +00:00
service.py Use HostAddressOpt for opts that accept IP and hostnames 2017-04-05 22:19:06 -04:00
ssh_utils.py Remove log translations 2017-03-19 14:59:57 +00:00
test.py Fix py27 gate - Remove Tooz usage for tests 2017-05-18 17:20:47 +02:00
utils.py Check the volume metadata value is a string or not 2017-05-22 21:37:16 -04:00
version.py