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")
|
||||
|
||||
# If no design_id is specified, instantiate a new one
|
||||
if 'design_ref' is None:
|
||||
if design_ref is None:
|
||||
self.logger.error(
|
||||
"Ingester:ingest_data required kwarg 'design_ref' missing")
|
||||
raise ValueError(
|
||||
|
@ -79,7 +79,7 @@ class IpLocalityCheck(Validators):
|
||||
address = ip_address.address
|
||||
ip_type = ip_address.type
|
||||
|
||||
if ip_type is not 'dhcp':
|
||||
if ip_type != 'dhcp':
|
||||
if ip_address_network_name not in network_dict:
|
||||
msg = '%s is not a valid network.' \
|
||||
% (ip_address_network_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user