Trivial fix typos

Change-Id: I7e1e3b2f92183b2a249299659f0778fe838212e2
This commit is contained in:
Vu Cong Tuan 2017-05-30 14:25:21 +07:00
parent d487bf7fb1
commit cf3c970a77
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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