black: re-format
black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I944f1915ece753f72a3fa654902d445a9749d0f9
diff --git a/lib/vpd_utils.py b/lib/vpd_utils.py
index 03581bb..754d255 100644
--- a/lib/vpd_utils.py
+++ b/lib/vpd_utils.py
@@ -5,8 +5,9 @@
"""
import json
-import func_args as fa
+
import bmc_ssh_utils as bsu
+import func_args as fa
def vpdtool(option_string, **bsu_options):
@@ -44,12 +45,14 @@
"""
bsu_options = fa.args_to_objects(bsu_options)
- out_buf, stderr, rc = bsu.bmc_execute_command('vpd-tool ' + option_string, **bsu_options)
+ out_buf, stderr, rc = bsu.bmc_execute_command(
+ "vpd-tool " + option_string, **bsu_options
+ )
# Only return output if its not a VPD write command.
- if '-w' not in option_string:
+ if "-w" not in option_string:
out_buf = json.loads(out_buf)
- if '-r' in option_string:
+ if "-r" in option_string:
return out_buf
else:
return out_buf[0]