]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Capitalize the first letter in log messages.
authorAccela Zhao <bigzhao@cisco.com>
Tue, 6 Jan 2015 02:17:56 +0000 (10:17 +0800)
committerAccela Zhao <bigzhao@cisco.com>
Tue, 6 Jan 2015 07:25:46 +0000 (15:25 +0800)
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

index 0e349233d26c722aa51698b9ccfda06ba471a9aa..a6a313e8ef3b97b879a74460d30e80b939c326e9 100644 (file)
@@ -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):