Merge "Add i18n translation to guestagent datastore 4/5"

This commit is contained in:
Jenkins 2017-01-19 11:25:46 +00:00 committed by Gerrit Code Review
commit 66f622b6de
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
import re
from trove.common.i18n import _
from trove.common import utils
ALTER_DB_CFG = "ALTER DATABASE %s SET %s = %s"
@ -97,7 +98,7 @@ class VSqlError(object):
"""
parse = re.match("^(ERROR|WARNING) (\d+): (.+)$", stderr)
if not parse:
raise ValueError("VSql stderr %(msg)s not recognized."
raise ValueError(_("VSql stderr %(msg)s not recognized.")
% {'msg': stderr})
self.type = parse.group(1)
self.code = int(parse.group(2))