mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
xenserver: Add type-checking to monitor-external-ids script.
Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -386,7 +386,7 @@ class Type(object):
|
||||
self.n_min == other.n_min and self.n_max == other.n_max)
|
||||
|
||||
def __ne__(self, other):
|
||||
if not isinstance(other, BaseType):
|
||||
if not isinstance(other, Type):
|
||||
return NotImplemented
|
||||
else:
|
||||
return not (self == other)
|
||||
|
Reference in New Issue
Block a user