Fix: flake8 tests failing due to invalid types comparison
Change-Id: I7266c0740652da40858a5a34cec73452ed0e10e6
This commit is contained in:
parent
d93d6d5a0a
commit
02ae2bf0ee
@ -79,7 +79,7 @@ class Ingester(object):
|
|||||||
raise ValueError("Invalid design_state handler")
|
raise ValueError("Invalid design_state handler")
|
||||||
|
|
||||||
# If no design_id is specified, instantiate a new one
|
# If no design_id is specified, instantiate a new one
|
||||||
if 'design_ref' is None:
|
if design_ref is None:
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
"Ingester:ingest_data required kwarg 'design_ref' missing")
|
"Ingester:ingest_data required kwarg 'design_ref' missing")
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
@ -79,7 +79,7 @@ class IpLocalityCheck(Validators):
|
|||||||
address = ip_address.address
|
address = ip_address.address
|
||||||
ip_type = ip_address.type
|
ip_type = ip_address.type
|
||||||
|
|
||||||
if ip_type is not 'dhcp':
|
if ip_type != 'dhcp':
|
||||||
if ip_address_network_name not in network_dict:
|
if ip_address_network_name not in network_dict:
|
||||||
msg = '%s is not a valid network.' \
|
msg = '%s is not a valid network.' \
|
||||||
% (ip_address_network_name)
|
% (ip_address_network_name)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user