From 58c2dfb5bf159488dd04cae572af93c975926d1c Mon Sep 17 00:00:00 2001 From: Tommy Carpenter Date: Wed, 6 Feb 2019 20:40:59 -0500 Subject: Fix flake8 violation Issue-ID: DCAEGEN2-1182 Change-Id: If0398a2312f27378236ed7c662a6f755800ade5c Signed-off-by: Tommy Carpenter --- app/app/config_binding_service/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/app/config_binding_service/client.py') diff --git a/app/app/config_binding_service/client.py b/app/app/config_binding_service/client.py index 93f4d69..c6a6753 100644 --- a/app/app/config_binding_service/client.py +++ b/app/app/config_binding_service/client.py @@ -151,7 +151,7 @@ def _replace_rels_template(rels, template_identifier): """ returnl = [] for rel in rels: - if template_identifier in rel and template_identifier is not "": + if template_identifier in rel and template_identifier != "": returnl.append(rel) # returnl now contains a list of DNS names (possible empty), now resolve them (or not if they are not regustered) return list(filter(lambda x: x is not None, map(_get_connection_info_from_consul, returnl))) -- cgit 1.2.3-korg