summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Gorshunov <roman.gorshunov@att.com>2019-02-11 18:14:20 +0100
committerRoman Gorshunov <roman.gorshunov@att.com>2019-02-11 18:16:12 +0100
commit02ae2bf0eeeec0754a634696a9ddaa2addd4601c (patch)
tree58c4291557ebedb52b38e57280c02d194f32f705
parentd93d6d5a0a370ced536180612d1ade708e29cd47 (diff)
Fix: flake8 tests failing due to invalid types comparison
Notes
Notes (review): Code-Review+2: Scott Hussey <sthussey@att.com> Workflow+1: Scott Hussey <sthussey@att.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 11 Feb 2019 17:43:32 +0000 Reviewed-on: https://review.openstack.org/636175 Project: openstack/airship-drydock Branch: refs/heads/master
-rw-r--r--python/drydock_provisioner/ingester/ingester.py2
-rw-r--r--python/drydock_provisioner/orchestrator/validations/ip_locality_check.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/python/drydock_provisioner/ingester/ingester.py b/python/drydock_provisioner/ingester/ingester.py
index b64b6a4..34b4aa2 100644
--- a/python/drydock_provisioner/ingester/ingester.py
+++ b/python/drydock_provisioner/ingester/ingester.py
@@ -79,7 +79,7 @@ class Ingester(object):
79 raise ValueError("Invalid design_state handler") 79 raise ValueError("Invalid design_state handler")
80 80
81 # If no design_id is specified, instantiate a new one 81 # If no design_id is specified, instantiate a new one
82 if 'design_ref' is None: 82 if design_ref is None:
83 self.logger.error( 83 self.logger.error(
84 "Ingester:ingest_data required kwarg 'design_ref' missing") 84 "Ingester:ingest_data required kwarg 'design_ref' missing")
85 raise ValueError( 85 raise ValueError(
diff --git a/python/drydock_provisioner/orchestrator/validations/ip_locality_check.py b/python/drydock_provisioner/orchestrator/validations/ip_locality_check.py
index 5b1d238..3df4f0e 100644
--- a/python/drydock_provisioner/orchestrator/validations/ip_locality_check.py
+++ b/python/drydock_provisioner/orchestrator/validations/ip_locality_check.py
@@ -79,7 +79,7 @@ class IpLocalityCheck(Validators):
79 address = ip_address.address 79 address = ip_address.address
80 ip_type = ip_address.type 80 ip_type = ip_address.type
81 81
82 if ip_type is not 'dhcp': 82 if ip_type != 'dhcp':
83 if ip_address_network_name not in network_dict: 83 if ip_address_network_name not in network_dict:
84 msg = '%s is not a valid network.' \ 84 msg = '%s is not a valid network.' \
85 % (ip_address_network_name) 85 % (ip_address_network_name)