]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Fix typo in cinder.volume.API.
authorTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>
Wed, 20 Nov 2013 01:39:44 +0000 (10:39 +0900)
committerTakashi NATSUME <natsume.takashi@lab.ntt.co.jp>
Wed, 20 Nov 2013 01:49:03 +0000 (10:49 +0900)
'_valid_availabilty_zone' --> '_valid_availability_zone'

Change-Id: Ib79772039d663f0eb4fc8994cc8edc5154d75a02
Closes-Bug: #1252915

cinder/volume/api.py

index a1398d4d8e6bfce0f812ef6d319c5a17c804f1f9..d8ec8ca6da9c8ec3255548917f1372a25274ed2a 100644 (file)
@@ -100,7 +100,7 @@ class API(base.Base):
         self.key_manager = keymgr.API()
         super(API, self).__init__(db_driver)
 
-    def _valid_availabilty_zone(self, availability_zone):
+    def _valid_availability_zone(self, availability_zone):
         #NOTE(bcwaldon): This approach to caching fails to handle the case
         # that an availability zone is disabled/removed.
         if availability_zone in self.availability_zone_names:
@@ -139,7 +139,7 @@ class API(base.Base):
 
         def check_volume_az_zone(availability_zone):
             try:
-                return self._valid_availabilty_zone(availability_zone)
+                return self._valid_availability_zone(availability_zone)
             except exception.CinderException:
                 LOG.exception(_("Unable to query if %s is in the "
                                 "availability zone set"), availability_zone)