mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	lfcli_base.py: enabling more debugging
This commit is contained in:
		@@ -28,13 +28,13 @@ class LFCliBase:
 | 
				
			|||||||
    def json_post(self, _req_url, _data):
 | 
					    def json_post(self, _req_url, _data):
 | 
				
			||||||
        json_response = None
 | 
					        json_response = None
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            lf_r = LFRequest.LFRequest(self.mgr_url, _req_url)
 | 
					            lf_r = LFRequest.LFRequest(self.mgr_url, _req_url, debug_=self.debugOn)
 | 
				
			||||||
            _data['suppress_preexec_cli'] = True
 | 
					            _data['suppress_preexec_cli'] = True
 | 
				
			||||||
            _data['suppress_preexec_method'] = True
 | 
					            _data['suppress_preexec_method'] = True
 | 
				
			||||||
            lf_r.addPostData(_data)
 | 
					            lf_r.addPostData(_data)
 | 
				
			||||||
            if (self.debugOn):
 | 
					            if (self.debugOn):
 | 
				
			||||||
                LANforge.LFUtils.debug_printer.pprint(_data)
 | 
					                LANforge.LFUtils.debug_printer.pprint(_data)
 | 
				
			||||||
            json_response = lf_r.jsonPost(self.debugOn)
 | 
					            json_response = lf_r.jsonPost(show_error=self.debugOn, debug=self.debugOn)
 | 
				
			||||||
        except Exception as x:
 | 
					        except Exception as x:
 | 
				
			||||||
            if self.debugOn or self.haltOnError:
 | 
					            if self.debugOn or self.haltOnError:
 | 
				
			||||||
                print("jsonPost posted to %s" % _req_url)
 | 
					                print("jsonPost posted to %s" % _req_url)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user