Merge "Fix typos"
This commit is contained in:
commit
5b7e2fdc18
@ -105,7 +105,7 @@ def _conf2json(conf):
|
||||
js_token_list.append(word)
|
||||
js_token_list.append("}")
|
||||
|
||||
# group quouted strings
|
||||
# group quoted strings
|
||||
token_grp_list = []
|
||||
for tok in js_token_list:
|
||||
if tok[0] == '"':
|
||||
@ -212,7 +212,7 @@ class GaneshaManager(object):
|
||||
'100);', run_as_root=False, check_exit_code=False)
|
||||
self.get_export_id(bump=False)
|
||||
# Starting from empty state. State will be rebuilt in a later
|
||||
# stage of service initalization.
|
||||
# stage of service initialization.
|
||||
self.reset_exports()
|
||||
self.restart_service()
|
||||
|
||||
|
@ -85,7 +85,7 @@ class GlusterfsNativeShareDriver(driver.ExecuteMixin,
|
||||
if not ssl_allow_opt:
|
||||
# Not having AUTH_SSL_ALLOW set is a problematic edge case.
|
||||
# - In GlusterFS 3.6, it implies that access is allowed to
|
||||
# noone, including intra-service access, which causes
|
||||
# none, including intra-service access, which causes
|
||||
# problems internally in GlusterFS
|
||||
# - In GlusterFS 3.7, it implies that access control is
|
||||
# disabled, which defeats the purpose of this driver --
|
||||
|
@ -248,7 +248,7 @@ class TestCase(base_test.BaseTestCase):
|
||||
error = abs(float(d1value) - float(d2value))
|
||||
within_tolerance = error <= tolerance
|
||||
except (ValueError, TypeError):
|
||||
# If both values aren't convertable to float, just ignore
|
||||
# If both values aren't convertible to float, just ignore
|
||||
# ValueError if arg is a str, TypeError if it's something else
|
||||
# (like None)
|
||||
within_tolerance = False
|
||||
|
@ -752,7 +752,7 @@ class BaseSharesTest(test.BaseTestCase):
|
||||
error = abs(float(d1value) - float(d2value))
|
||||
within_tolerance = error <= tolerance
|
||||
except (ValueError, TypeError):
|
||||
# If both values aren't convertable to float, just ignore
|
||||
# If both values aren't convertible to float, just ignore
|
||||
# ValueError if arg is a str, TypeError if it's something else
|
||||
# (like None)
|
||||
within_tolerance = False
|
||||
|
Loading…
Reference in New Issue
Block a user