Merge "Return Undercloud role instead of Controller"
This commit is contained in:
commit
2a08ceccd2
|
@ -161,7 +161,7 @@ class TestDeployUndercloud(TestPluginV1):
|
|||
self.assertEqual(
|
||||
self.cmd._get_primary_role_name(parsed_args.roles_file,
|
||||
parsed_args.templates),
|
||||
'Controller')
|
||||
'Undercloud')
|
||||
|
||||
@mock.patch('tripleoclient.utils.fetch_roles_file')
|
||||
def test_get_primary_role_name_no_primary(self, mock_data):
|
||||
|
|
|
@ -180,8 +180,7 @@ class Deploy(command.Command):
|
|||
roles_data = utils.fetch_roles_file(
|
||||
roles_file_path, templates)
|
||||
if not roles_data:
|
||||
# TODO(aschultz): should this be Undercloud instead?
|
||||
return 'Controller'
|
||||
return 'Undercloud'
|
||||
|
||||
for r in roles_data:
|
||||
if 'tags' in r and 'primary' in r['tags']:
|
||||
|
|
Loading…
Reference in New Issue