Fix: flake8 tests failing due to invalid types comparison

Change-Id: I7266c0740652da40858a5a34cec73452ed0e10e6
This commit is contained in:
Roman Gorshunov 2019-02-11 18:14:20 +01:00
parent d93d6d5a0a
commit 02ae2bf0ee
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -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)