From c2e8f6b4b86385ed96a00a4f3dd680c993a8c712 Mon Sep 17 00:00:00 2001 From: yuhui_inspur Date: Wed, 8 Feb 2017 00:09:20 -0800 Subject: [PATCH] Fix some typo errors Change-Id: I0a205cb82efdc94f9bea6e79e39052b1baa58a90 --- nova/block_device.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nova/block_device.py b/nova/block_device.py index a6ec93e3005e..36702dcc8ca7 100644 --- a/nova/block_device.py +++ b/nova/block_device.py @@ -369,7 +369,7 @@ def from_legacy_mapping(legacy_block_device_mapping, image_uuid='', def properties_root_device_name(properties): - """get root device name from image meta data. + """Get root device name from image meta data. If it isn't specified, return None. """ root_device_name = None @@ -391,7 +391,7 @@ def validate_device_name(value): try: # NOTE (ndipanov): Do not allow empty device names # until assigning default values - # is supported by nova.compute + # are supported by nova.compute utils.check_string_length(value, 'Device name', min_length=1, max_length=255) except exception.InvalidInput: @@ -410,7 +410,7 @@ def validate_and_default_volume_size(bdm): bdm['volume_size'], 'volume_size', min_value=0) except exception.InvalidInput: # NOTE: We can remove this validation code after removing - # Nova v2.0 API code because v2.1 API validates this case + # Nova v2.0 API code, because v2.1 API validates this case # already at its REST API layer. raise exception.InvalidBDMFormat( details=_("Invalid volume_size."))