Browse Source

Fix: flake8 tests failing due to invalid types comparison

Change-Id: I7266c0740652da40858a5a34cec73452ed0e10e6
Roman Gorshunov 2 months ago
parent
commit
02ae2bf0ee

+ 1
- 1
python/drydock_provisioner/ingester/ingester.py View File

@@ -79,7 +79,7 @@ class Ingester(object):
79 79
             raise ValueError("Invalid design_state handler")
80 80
 
81 81
         # If no design_id is specified, instantiate a new one
82
-        if 'design_ref' is None:
82
+        if design_ref is None:
83 83
             self.logger.error(
84 84
                 "Ingester:ingest_data required kwarg 'design_ref' missing")
85 85
             raise ValueError(

+ 1
- 1
python/drydock_provisioner/orchestrator/validations/ip_locality_check.py View File

@@ -79,7 +79,7 @@ class IpLocalityCheck(Validators):
79 79
                     address = ip_address.address
80 80
                     ip_type = ip_address.type
81 81
 
82
-                    if ip_type is not 'dhcp':
82
+                    if ip_type != 'dhcp':
83 83
                         if ip_address_network_name not in network_dict:
84 84
                             msg = '%s is not a valid network.' \
85 85
                                   % (ip_address_network_name)

Loading…
Cancel
Save