diff --git a/senlinclient/shell.py b/senlinclient/shell.py index 534257da..59549825 100644 --- a/senlinclient/shell.py +++ b/senlinclient/shell.py @@ -160,8 +160,8 @@ class SenlinShell(object): # if both username and user_id are specified, user_id takes precedence if (args.username and args.user_id): - msg = _('Both user name and user ID are specified, Senin will use ' - 'user ID for authentication') + msg = _('Both user name and user ID are specified, Senlin will ' + 'use user ID for authentication') print(_('WARNING: %s') % msg) if 'v3' in args.auth_url: @@ -198,7 +198,8 @@ class SenlinShell(object): if ((args.project_id or args.tenant_id) and (args.project_name or args.tenant_name)): msg = _('Both project/tenant name and project/tenant ID are ' - 'specified, Senin will use project ID for authentication') + 'specified, Senlin will use project ID for ' + 'authentication') print(_('WARNING: %s') % msg) # project name may not be unique diff --git a/senlinclient/tests/unit/test_shell.py b/senlinclient/tests/unit/test_shell.py index b284f86b..dbeaaf71 100644 --- a/senlinclient/tests/unit/test_shell.py +++ b/senlinclient/tests/unit/test_shell.py @@ -276,8 +276,8 @@ class ShellTest(testtools.TestCase): args.project_id = None args.tenant_id = None sh._check_identity_arguments(args) - msg = _('WARNING: Both user name and user ID are specified, Senin ' - 'will use user ID for authentication') + msg = _('WARNING: Both user name and user ID are specified, ' + 'Senlin will use user ID for authentication') mock_print.assert_called_with(msg) # 'v3' in auth_url but neither user_domain_id nor user_domain_name @@ -320,7 +320,8 @@ class ShellTest(testtools.TestCase): args.user_id = None sh._check_identity_arguments(args) msg = _('Both project/tenant name and project/tenant ID are ' - 'specified, Senin will use project ID for authentication') + 'specified, Senlin will use project ID for ' + 'authentication') mock_print.assert_called_with(_('WARNING: %s') % msg) # Project name may not be unique args = TestArgs()