Merge "Fixes typos in the files in the nova folder"
This commit is contained in:
@@ -663,7 +663,7 @@ class FloatingIpExists(NovaException):
|
|||||||
|
|
||||||
|
|
||||||
class FloatingIpNotFound(NotFound):
|
class FloatingIpNotFound(NotFound):
|
||||||
ec2_code = "UnsupportedOpperation"
|
ec2_code = "UnsupportedOperation"
|
||||||
msg_fmt = _("Floating ip not found for id %(id)s.")
|
msg_fmt = _("Floating ip not found for id %(id)s.")
|
||||||
|
|
||||||
|
|
||||||
@@ -694,7 +694,7 @@ class NoMoreFloatingIps(FloatingIpNotFound):
|
|||||||
|
|
||||||
|
|
||||||
class FloatingIpAssociated(NovaException):
|
class FloatingIpAssociated(NovaException):
|
||||||
ec2_code = "UnsupportedOpperation"
|
ec2_code = "UnsupportedOperation"
|
||||||
msg_fmt = _("Floating ip %(address)s is associated.")
|
msg_fmt = _("Floating ip %(address)s is associated.")
|
||||||
|
|
||||||
|
|
||||||
@@ -707,12 +707,12 @@ class NoFloatingIpsDefined(NotFound):
|
|||||||
|
|
||||||
|
|
||||||
class NoFloatingIpInterface(NotFound):
|
class NoFloatingIpInterface(NotFound):
|
||||||
ec2_code = "UnsupportedOpperation"
|
ec2_code = "UnsupportedOperation"
|
||||||
msg_fmt = _("Interface %(interface)s not found.")
|
msg_fmt = _("Interface %(interface)s not found.")
|
||||||
|
|
||||||
|
|
||||||
class CannotDisassociateAutoAssignedFloatingIP(NovaException):
|
class CannotDisassociateAutoAssignedFloatingIP(NovaException):
|
||||||
ec2_code = "UnsupportedOpperation"
|
ec2_code = "UnsupportedOperation"
|
||||||
msg_fmt = _("Cannot disassociate auto assigned floating ip")
|
msg_fmt = _("Cannot disassociate auto assigned floating ip")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class BaseFilter(object):
|
|||||||
def filter_all(self, filter_obj_list, filter_properties):
|
def filter_all(self, filter_obj_list, filter_properties):
|
||||||
"""Yield objects that pass the filter.
|
"""Yield objects that pass the filter.
|
||||||
|
|
||||||
Can be overriden in a subclass, if you need to base filtering
|
Can be overridden in a subclass, if you need to base filtering
|
||||||
decisions on all objects. Otherwise, one can just override
|
decisions on all objects. Otherwise, one can just override
|
||||||
_filter_one() to filter a single object.
|
_filter_one() to filter a single object.
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ class BaseWeigher(object):
|
|||||||
"""Base class for pluggable weighers."""
|
"""Base class for pluggable weighers."""
|
||||||
def _weight_multiplier(self):
|
def _weight_multiplier(self):
|
||||||
"""How weighted this weigher should be. Normally this would
|
"""How weighted this weigher should be. Normally this would
|
||||||
be overriden in a subclass based on a config value.
|
be overridden in a subclass based on a config value.
|
||||||
"""
|
"""
|
||||||
return 1.0
|
return 1.0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user