From 72ab427a2755c4c16edf331d61feccb6fa9f7119 Mon Sep 17 00:00:00 2001 From: Accela Zhao Date: Tue, 6 Jan 2015 10:17:56 +0800 Subject: [PATCH] Capitalize the first letter in log messages. Capitalize the first letter in the log messages of cinder/tests/test_emc_xtremio.py to make them look more consistent with logging in other places. Change-Id: Ib23248f8d983f5bee31f405c2088b99772a083bd --- cinder/tests/test_emc_xtremio.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cinder/tests/test_emc_xtremio.py b/cinder/tests/test_emc_xtremio.py index 0e349233d..a6a313e8e 100644 --- a/cinder/tests/test_emc_xtremio.py +++ b/cinder/tests/test_emc_xtremio.py @@ -15,6 +15,7 @@ import mock +import six from cinder import exception from cinder.openstack.common import log as logging @@ -129,14 +130,16 @@ def xms_request(object_type='volumes', request_typ='GET', data=None, del xms_data[object_type][data['index']] del xms_data[object_type][data[typ2id[object_type]][1]] else: - LOG.error('trying to delete a missing object %s', str(obj_key)) + LOG.error('Trying to delete a missing object %s', + six.text_type(obj_key)) raise exception.NotFound() elif request_typ == 'PUT': if obj_key in xms_data[object_type]: obj = xms_data[object_type][obj_key] obj.update(data) else: - LOG.error('trying to update a missing object %s', str(obj_key)) + LOG.error('Trying to update a missing object %s', + six.text_type(obj_key)) raise exception.NotFound() @@ -145,7 +148,7 @@ def xms_bad_request(object_type='volumes', request_typ='GET', data=None, if request_typ == 'GET': raise exception.NotFound() elif request_typ == 'POST': - raise exception.VolumeBackendAPIException('failed to create ig') + raise exception.VolumeBackendAPIException('Failed to create ig') class D(dict): -- 2.45.2