Skip to content

Commit

Permalink
Merge "Fix typo in cinder.volume.API."
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Nov 22, 2013
2 parents 704faab + d97304d commit b4a9c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cinder/volume/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def __init__(self, db_driver=None, image_service=None):
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:
Expand Down Expand Up @@ -139,7 +139,7 @@ def create(self, context, size, name, description, snapshot=None,

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)
Expand Down

0 comments on commit b4a9c25

Please sign in to comment.