]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Change frozen error messages from _LE to _
authorJohn Griffith <john.griffith8@gmail.com>
Thu, 25 Feb 2016 17:15:07 +0000 (10:15 -0700)
committerJohn Griffith <john.griffith8@gmail.com>
Fri, 26 Feb 2016 21:22:01 +0000 (21:22 +0000)
The super secret formula states that the error messages should
use '_' instead of '_LE'.  This patch changes the ones introduced
in Replication V2.1.

Change-Id: I9a4b87421eeda69ca918cbf869f2990ef113e158

cinder/volume/api.py

index 83457b93aac0a4a2cedb8b7dbd93c7ea966a80e1..f6514d28cfc1859de7ea63618251bfae01070c28 100644 (file)
@@ -1597,7 +1597,7 @@ class API(base.Base):
         result = service.conditional_update(
             {'frozen': True}, expected)
         if not result:
-            msg = _LE('Host is already Frozen.')
+            msg = _('Host is already Frozen.')
             LOG.error(msg)
             raise exception.InvalidInput(reason=msg)
 
@@ -1618,7 +1618,7 @@ class API(base.Base):
         result = service.conditional_update(
             {'frozen': False}, expected)
         if not result:
-            msg = _LE('Host is NOT Frozen.')
+            msg = _('Host is NOT Frozen.')
             LOG.error(msg)
             raise exception.InvalidInput(reason=msg)
         if not self.volume_rpcapi.thaw_host(ctxt, host):