Fix pylint warning and errors
Changes:
- Recommended changed by pylint report
Tested:
python3 -m pylint lib/vpd_utils.py
Change-Id: Id910bf96350462c0bbfc4db12b42202929dea3f7
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/vpd_utils.py b/lib/vpd_utils.py
index eb31c71..03581bb 100644
--- a/lib/vpd_utils.py
+++ b/lib/vpd_utils.py
@@ -4,9 +4,9 @@
VPD functions.
"""
+import json
import func_args as fa
import bmc_ssh_utils as bsu
-import json
def vpdtool(option_string, **bsu_options):
@@ -20,26 +20,27 @@
vpd_results:
[/system/chassis/motherboard]:
- [PN]: PN12345
- [SN]: YL2E2D010000
- [LocationCode]: U78DA.ND1. -P0
- [CC]: 2E2D
- [DR]: SYSTEM BACKPLANE
- [FN]: F191014
- [type]: xyz.openbmc_project.Inventory.Item.Board.Motherboard
+ [PN]: PN12345
+ [SN]: YL2E2D010000
+ [LocationCode]: U78DA.ND1. -P0
+ [CC]: 2E2D
+ [DR]: SYSTEM BACKPLANE
+ [FN]: F191014
+ [type]: xyz.openbmc_project.Inventory.Item.Board.Motherboard
[/system/chassis/motherboard/ebmc_card_bmc]:
- [PN]: PN12345
- [SN]: YL6B58010000
- [LocationCode]: U78DA.ND1. -P0-C5
- [CC]: 6B58
- [DR]: EBMC
- [FN]: F191014
- [type]: xyz.openbmc_project.Inventory.Item.Bmc
+ [PN]: PN12345
+ [SN]: YL6B58010000
+ [LocationCode]: U78DA.ND1. -P0-C5
+ [CC]: 6B58
+ [DR]: EBMC
+ [FN]: F191014
+ [type]: xyz.openbmc_project.Inventory.Item.Bmc
Description of argument(s):
- option_string A string of options which are to be processed by the vpd-tool command.
- bsu_options Options to be passed directly to bmc_execute_command. See its prolog for
- details.
+ option_string A string of options which are to be processed by
+ the vpd-tool command.
+ bsu_options Options to be passed directly to bmc_execute_command.
+ See its prolog for details.
"""
bsu_options = fa.args_to_objects(bsu_options)