Merge "Don't report 'exiting' when mapping cells"

This commit is contained in:
Zuul 2019-04-06 11:21:47 +00:00 committed by Gerrit Code Review
commit dbfb6def5b
2 changed files with 2 additions and 2 deletions

View File

@ -1329,7 +1329,7 @@ class CellV2Commands(object):
# we should support.
cell_mapping_uuid = host_mapping.cell_mapping.uuid
if not missing_nodes:
print(_('All hosts are already mapped to cell(s), exiting.'))
print(_('All hosts are already mapped to cell(s).'))
return cell_mapping_uuid
# Create the cell mapping in the API database
if cell_mapping_uuid is not None:

View File

@ -1103,7 +1103,7 @@ class CellV2CommandsTestCase(test.NoDBTestCase):
for i in range(3):
expected += ('Host host%s is already mapped to cell %s\n' %
(i, cell_mapping_uuid))
expected += 'All hosts are already mapped to cell(s), exiting.'
expected += 'All hosts are already mapped to cell(s).'
self.assertEqual(expected, output)
def test_map_cell_and_hosts_partial_update(self):