From d97304d18cf594e5982899d1c9f82a297842cd1d Mon Sep 17 00:00:00 2001 From: Takashi NATSUME Date: Wed, 20 Nov 2013 10:39:44 +0900 Subject: [PATCH] Fix typo in cinder.volume.API. '_valid_availabilty_zone' --> '_valid_availability_zone' Change-Id: Ib79772039d663f0eb4fc8994cc8edc5154d75a02 Closes-Bug: #1252915 --- cinder/volume/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.45.2