diff options
author | George Kraft <george.kraft@calxeda.com> | 2013-05-03 13:48:18 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2013-05-03 13:48:18 -0500 |
commit | a84ee240281c2e9b125a2291bb59222780fd0ed2 (patch) | |
tree | 50b038730a4cc399f4a7065428b28a4e45e941b9 | |
parent | aad89cbd06f426cc4c190f6b8e67b7aa063036cd (diff) | |
download | pyipmi-a84ee240281c2e9b125a2291bb59222780fd0ed2.tar.gz |
fabric_config: Parse GetLinkSpeed as float, not int
2.5 is a legitimate linkspeed, and that breaks if we parse it as
an int.
-rw-r--r-- | pyipmi/commands/fabric_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyipmi/commands/fabric_config.py b/pyipmi/commands/fabric_config.py index fc5b035..fe6b92f 100644 --- a/pyipmi/commands/fabric_config.py +++ b/pyipmi/commands/fabric_config.py @@ -184,12 +184,12 @@ class GetIPAddrBase(Command, ResponseParserMixIn): class GetLinkspeedCommand(Command, ResponseParserMixIn): """Describes the ipmitool fabric config get linkspeed command""" name = "Get global linkspeed command" - result_type = int + result_type = float def parse_response(self, out, err): if err: raise IpmiError(err) - return int(out) + return float(out) ipmitool_args = ['cxoem', 'fabric', 'config', 'get', 'linkspeed'] |