From: Eric Harney Date: Tue, 28 May 2013 14:41:26 +0000 (-0400) Subject: Fix typos X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=20a728a99a1497e95917329b8b7f544593a8ab82;p=openstack-build%2Fcinder-build.git 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 --- diff --git a/cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py b/cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py index 7d6a3b1d4..80fb859da 100644 --- a/cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py +++ b/cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py @@ -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 diff --git a/cinder/tests/api/contrib/test_services.py b/cinder/tests/api/contrib/test_services.py index 1f823c356..4e7493a46 100644 --- a/cinder/tests/api/contrib/test_services.py +++ b/cinder/tests/api/contrib/test_services.py @@ -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)