Fixed inconsistent naming conventions
Change-Id: Ide2ce0d82b61001a18304747d1ca62ee4e53956b
This commit is contained in:
@@ -981,7 +981,7 @@ class FSSRestCommon(object):
|
||||
if response.status == 200:
|
||||
return json_data
|
||||
elif response.status == 404:
|
||||
msg = (_('FSS rest api return failed, method=%(method)s, '
|
||||
msg = (_('FSS REST API return failed, method=%(method)s, '
|
||||
'uri=%(url)s, response=%(response)s') % {
|
||||
"method": method,
|
||||
"url": url,
|
||||
|
||||
@@ -157,13 +157,13 @@ class KaminarioCinderDriver(cinder.volume.driver.ISCSIDriver):
|
||||
ver_exist = versionutils.convert_version_to_int(ver)
|
||||
ver_min = versionutils.convert_version_to_int(K2_MIN_VERSION)
|
||||
if ver_exist < ver_min:
|
||||
msg = _("K2 rest api version should be "
|
||||
msg = _("K2 REST API version should be "
|
||||
">= %s.") % K2_MIN_VERSION
|
||||
LOG.error(msg)
|
||||
raise exception.KaminarioCinderDriverException(reason=msg)
|
||||
|
||||
else:
|
||||
msg = _("K2 rest api version search failed.")
|
||||
msg = _("K2 REST API version search failed.")
|
||||
LOG.error(msg)
|
||||
raise exception.KaminarioCinderDriverException(reason=msg)
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ class RestClientURL(object):
|
||||
if context:
|
||||
# only schemes that can be used will be http or https if it
|
||||
# is given in the path variable, or the path will begin
|
||||
# with the rest API location meaning invalid or unwanted
|
||||
# with the REST API location meaning invalid or unwanted
|
||||
# schemes cannot be used
|
||||
response = urllib.request.urlopen(req, # nosec
|
||||
timeout=self.timeout,
|
||||
|
||||
Reference in New Issue
Block a user