From: Takashi NATSUME Date: Wed, 20 Nov 2013 01:39:44 +0000 (+0900) Subject: Fix typo in cinder.volume.API. X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=d97304d18cf594e5982899d1c9f82a297842cd1d;p=openstack-build%2Fcinder-build.git Fix typo in cinder.volume.API. '_valid_availabilty_zone' --> '_valid_availability_zone' Change-Id: Ib79772039d663f0eb4fc8994cc8edc5154d75a02 Closes-Bug: #1252915 --- diff --git a/cinder/volume/api.py b/cinder/volume/api.py index a1398d4d8..d8ec8ca6d 100644 --- a/cinder/volume/api.py +++ b/cinder/volume/api.py @@ -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)