diff options
author | evasquez <eric.vasquez@calxeda.com> | 2013-08-26 10:41:26 -0500 |
---|---|---|
committer | evasquez <eric.vasquez@calxeda.com> | 2013-08-26 10:41:26 -0500 |
commit | 04380fda7556f5b66c6f98b954a79a08c6f5044a (patch) | |
tree | 56b465419ff7b4f436d02bd2bb44972a8db0ec8f | |
parent | 6d4548bedceb9159a76ea9e6a4bdd09213262408 (diff) | |
download | cxmanage-04380fda7556f5b66c6f98b954a79a08c6f5044a.tar.gz |
nojira: Fixed pylint ERROR.
-rw-r--r-- | cxmanage_api/node.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py index 9f74e8c..fff4bb1 100644 --- a/cxmanage_api/node.py +++ b/cxmanage_api/node.py @@ -1778,14 +1778,14 @@ obtained. "Unable to increment SIMG priority, too high") return priority - def _read_fru(self, node, fru_number, offset=0, bytes_to_read= -1): + def _read_fru(self, fru_number, offset=0, bytes_to_read= -1): """Read from node's fru starting at offset. This is equivalent to the ipmitool fru read command. """ # Use a temporary file to store the FRU image with tempfile.NamedTemporaryFile(delete=True) as hexfile: - node.bmc.fru_read(fru_number, hexfile.name) + self.bmc.fru_read(fru_number, hexfile.name) hexfile.seek(offset) return(hexfile.read(bytes_to_read)) |