mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-03 20:27:54 +00:00 
			
		
		
		
	http_profile.py: Remove == None error
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
		@@ -122,7 +122,7 @@ class HTTPProfile(LFCliBase):
 | 
				
			|||||||
            resource = self.local_realm.name_to_eid(port_name)[1]
 | 
					            resource = self.local_realm.name_to_eid(port_name)[1]
 | 
				
			||||||
            name = self.local_realm.name_to_eid(port_name)[2]
 | 
					            name = self.local_realm.name_to_eid(port_name)[2]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if upload_name != None:
 | 
					            if upload_name is not None:
 | 
				
			||||||
                name = upload_name
 | 
					                name = upload_name
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if http:
 | 
					            if http:
 | 
				
			||||||
@@ -155,7 +155,7 @@ class HTTPProfile(LFCliBase):
 | 
				
			|||||||
            if (url is None) or (url == ""):
 | 
					            if (url is None) or (url == ""):
 | 
				
			||||||
                raise ValueError("HTTPProfile::create: url unset")
 | 
					                raise ValueError("HTTPProfile::create: url unset")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if upload_name ==None:
 | 
					            if upload_name is None:
 | 
				
			||||||
                endp_data = {
 | 
					                endp_data = {
 | 
				
			||||||
                    "alias": name + "_l4",
 | 
					                    "alias": name + "_l4",
 | 
				
			||||||
                    "shelf": shelf,
 | 
					                    "shelf": shelf,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user