Trivial fix typos
Change-Id: I7e1e3b2f92183b2a249299659f0778fe838212e2
This commit is contained in:
parent
d487bf7fb1
commit
cf3c970a77
@ -154,7 +154,7 @@ def pre_validate_all_builders(builders):
|
|||||||
if inter:
|
if inter:
|
||||||
raise ValueError('Same region found in different rings')
|
raise ValueError('Same region found in different rings')
|
||||||
|
|
||||||
# check device uniquness
|
# check device uniqueness
|
||||||
check_for_dev_uniqueness(builders)
|
check_for_dev_uniqueness(builders)
|
||||||
|
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ class BrainSplitter(object):
|
|||||||
policy.load_ring('/etc/swift')
|
policy.load_ring('/etc/swift')
|
||||||
self.ring = policy.object_ring
|
self.ring = policy.object_ring
|
||||||
else:
|
else:
|
||||||
raise ValueError('Unkonwn server_type: %r' % server_type)
|
raise ValueError('Unknown server_type: %r' % server_type)
|
||||||
self.server_type = server_type
|
self.server_type = server_type
|
||||||
|
|
||||||
part, nodes = self.ring.get_nodes(self.account, c, o)
|
part, nodes = self.ring.get_nodes(self.account, c, o)
|
||||||
|
@ -55,7 +55,7 @@ def find_max_occupancy_node(dir_list):
|
|||||||
"""
|
"""
|
||||||
Find node with maximum occupancy.
|
Find node with maximum occupancy.
|
||||||
|
|
||||||
:param list_dir: list of directories for each node.
|
:param dir_list: list of directories for each node.
|
||||||
:return: number number node in list_dir
|
:return: number number node in list_dir
|
||||||
"""
|
"""
|
||||||
count = 0
|
count = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user