Fix typos

Fix servcie -> service typo in test code

Fix typo: "metedata" -> "metadata" typo in
Glance metadata database migration code error message.

Change-Id: I21f4539b7dedeaed6b2e6c3b34803d1b996ce79c
This commit is contained in:
Eric Harney 2013-05-28 10:41:26 -04:00
parent c45d5ddaae
commit 20a728a99a
2 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ def upgrade(migrate_engine):
volume_glance_metadata.create()
except Exception:
LOG.exception(_("Exception while creating table "
"'volume_glance_metedata'"))
"'volume_glance_metadata'"))
meta.drop_all(tables=[volume_glance_metadata])
raise

View File

@ -76,7 +76,7 @@ class FakeRequestWithHostService(object):
GET = {"host": "host1", "service": "cinder-volume"}
def fake_servcie_get_all(context):
def fake_service_get_all(context):
return fake_services_list
@ -116,7 +116,7 @@ class ServicesTest(test.TestCase):
def setUp(self):
super(ServicesTest, self).setUp()
self.stubs.Set(db, "service_get_all", fake_servcie_get_all)
self.stubs.Set(db, "service_get_all", fake_service_get_all)
self.stubs.Set(timeutils, "utcnow", fake_utcnow)
self.stubs.Set(db, "service_get_by_args",
fake_service_get_by_host_binary)