From 39746c5ce0b61d0f27d1f13f3b125ec83a8fe014 Mon Sep 17 00:00:00 2001 From: Matthew Stidham Date: Mon, 15 Nov 2021 17:06:39 -0800 Subject: [PATCH] http_profile.py: Remove == None error Signed-off-by: Matthew Stidham --- py-json/http_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/py-json/http_profile.py b/py-json/http_profile.py index cc4032b2..5c2f03d8 100644 --- a/py-json/http_profile.py +++ b/py-json/http_profile.py @@ -122,7 +122,7 @@ class HTTPProfile(LFCliBase): resource = self.local_realm.name_to_eid(port_name)[1] name = self.local_realm.name_to_eid(port_name)[2] - if upload_name != None: + if upload_name is not None: name = upload_name if http: @@ -155,7 +155,7 @@ class HTTPProfile(LFCliBase): if (url is None) or (url == ""): raise ValueError("HTTPProfile::create: url unset") - if upload_name ==None: + if upload_name is None: endp_data = { "alias": name + "_l4", "shelf": shelf,