mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
* We don't need to import LFUtils in lfcli_base
* local_realm in lf_attenmod is unused. * local_realm in attenuator_profile is unused, because I'm switching to inheritance as part of my work eliminating redundancy. Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ if sys.version_info[0] != 3:
|
||||
|
||||
sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../")))
|
||||
|
||||
LFUtils = importlib.import_module("py-json.LANforge.LFUtils")
|
||||
debug_printer = pprint.PrettyPrinter(indent=2)
|
||||
LFRequest = importlib.import_module("py-json.LANforge.LFRequest")
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ class LFCliBase:
|
||||
|
||||
lf_r.addPostData(_data)
|
||||
if debug_:
|
||||
LFUtils.debug_printer.pprint(_data)
|
||||
debug_printer.pprint(_data)
|
||||
json_response = lf_r.json_post(show_error=debug_,
|
||||
debug=debug_,
|
||||
response_json_list_=response_json_list_,
|
||||
@@ -243,7 +243,7 @@ class LFCliBase:
|
||||
die_on_error_=self.exit_on_error)
|
||||
lf_r.addPostData(_data)
|
||||
if debug_:
|
||||
LFUtils.debug_printer.pprint(_data)
|
||||
debug_printer.pprint(_data)
|
||||
json_response = lf_r.json_put(show_error=self.debug,
|
||||
debug=debug_,
|
||||
response_json_list_=response_json_list_,
|
||||
|
||||
Reference in New Issue
Block a user