summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cxmanage_api/node.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py
index fff4bb1..6bfd12f 100644
--- a/cxmanage_api/node.py
+++ b/cxmanage_api/node.py
@@ -747,8 +747,9 @@ communication.
)
filename = temp_file()
- with open(filename, "w") as f:
- f.write(ubootenv.get_contents())
+ with open(filename, "w") as file_:
+ file_.write(ubootenv.get_contents())
+
ubootenv_image = self.image(filename, image.type, False,
image.daddr, image.skip_crc32,
image.version)
@@ -845,7 +846,7 @@ communication.
"""
# Reset CDB
- result = self.bmc.reset_firmware()
+ self.bmc.reset_firmware()
# Reset ubootenv
fwinfo = self.get_firmware_info()