Fix a few typos in log messages and comments

a instance => an instance
occured => occurred
nessesary => necessary
temprary => temporary
Excercise => Exercise
preceeding => preceding
nu,ber => the number
Remove unnecessary 'a'

Change-Id: I9df2de6178bc73a05fea936fa2a3f26c3e6c09d3
This commit is contained in:
Takashi NATSUME 2015-08-11 11:44:42 +09:00
parent 1cff63bd16
commit 5738388a62
8 changed files with 12 additions and 12 deletions

View File

@ -199,7 +199,7 @@ trc.schema.sampleManager = {
code /* Code text to set (string) */)
{
//
// Preprocess the txt if nessesary...
// Preprocess the txt if necessary...
//
var ieVersion = trc.util.browser.detectIEVersion();
if ((ieVersion > -1) &&

View File

@ -181,9 +181,9 @@ class MgmtInstanceController(InstanceController):
@admin_context
def diagnostics(self, req, tenant_id, id):
"""Return a single instance diagnostics."""
"""Return instance diagnostics for a single instance."""
LOG.info(_("req : '%s'\n\n") % req)
LOG.info(_("Showing a instance diagnostics for instance '%s'") % id)
LOG.info(_("Showing instance diagnostics for the instance '%s'") % id)
LOG.info(_("id : '%s'\n\n") % id)
context = req.environ[wsgi.CONTEXT_KEY]

View File

@ -239,7 +239,7 @@ class DB2Admin(object):
next_marker = None
LOG.debug("databases = %s." % str(databases))
except exception.ProcessExecutionError as pe:
LOG.exception(_("An error occured listing databases: %s.") %
LOG.exception(_("An error occurred listing databases: %s.") %
pe.message)
pass
return databases, next_marker
@ -275,7 +275,7 @@ class DB2Admin(object):
LOG.debug(pe)
pass
except exception.ProcessExecutionError as pe:
LOG.exception(_("An error occured creating users: %s.") %
LOG.exception(_("An error occurred creating users: %s.") %
pe.message)
pass
@ -304,7 +304,7 @@ class DB2Admin(object):
LOG.debug("Revoked access for user:%s on database:%s." % (
userName, mydb.name))
except exception.ProcessExecutionError as pe:
LOG.debug("Error occured while revoking access to %s." %
LOG.debug("Error occurred while revoking access to %s." %
mydb.name)
pass
try:

View File

@ -577,7 +577,7 @@ class FreshInstanceTasks(FreshInstance, NotifyMixin, ConfigurationMixin):
This function is meant to be called with poll_until to check that
the guest is alive before sending a 'create' message. This prevents
over billing a customer for a instance that they can never use.
over billing a customer for an instance that they can never use.
Returns: boolean if the service is active.
Raises: TroveError if the service is in a failure state.

View File

@ -113,7 +113,7 @@ class HostsMgmtCommands(object):
assert_not_equal(len(result), 0,
"list hosts should not be empty: %s" % str(result))
hosts = []
# Find a host with a instanceCount > 0
# Find a host with an instanceCount > 0
for host in result:
msg = 'Host: %s, Count: %s' % (host.name, host.instanceCount)
hosts.append(msg)

View File

@ -96,7 +96,7 @@ class TestConfigurationOverrideStrategy(trove_testtools.TestCase):
def tearDown(self):
trove_testtools.TestCase.tearDown(self)
# Remove temprary files in the LIFO order.
# Remove temporary files in the LIFO order.
while self._temp_files_paths:
try:
os.remove(self._temp_files_paths.pop())

View File

@ -3064,8 +3064,8 @@ class VerticaAppTest(testtools.TestCase):
with patch.object(self.app, 'read_config',
return_value=self.test_config):
self.app.install_cluster(members=['member1', 'member2'])
# Verifying nu,ber of shell calls,
# as command has already been tested in preceeding tests
# Verifying the number of shell calls,
# as command has already been tested in preceding tests
self.assertEqual(5, vertica_system.shell_execute.call_count)
def test__enable_db_on_boot(self):

View File

@ -68,7 +68,7 @@ class TestUpgradeModel(trove_testtools.TestCase):
@patch.object(rpc, 'get_client')
def _assert_create_with_metadata(self, mock_client, api_upgrade_mock,
metadata=None):
"""Excercise UpgradeMessageSender.create() call.
"""Exercise UpgradeMessageSender.create() call.
"""
context = Mock()