]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix typos
authorEric Harney <eharney@redhat.com>
Tue, 28 May 2013 14:41:26 +0000 (10:41 -0400)
committerEric Harney <eharney@redhat.com>
Thu, 30 May 2013 18:39:43 +0000 (14:39 -0400)
Fix servcie -> service typo in test code

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

Change-Id: I21f4539b7dedeaed6b2e6c3b34803d1b996ce79c

cinder/db/sqlalchemy/migrate_repo/versions/003_glance_metadata.py
cinder/tests/api/contrib/test_services.py

index 7d6a3b1d463154694c3d01cce3e7ff51c1faf4ca..80fb859da10e477408e9479024087021809bac81 100644 (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
 
index 1f823c356a62c5fa91bd40b6f649edb03f1ca1d5..4e7493a46ad1b591f827fbca94c62b68c82976a3 100644 (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)