Message ID | 20130709151112.31410.48780.launchpad@ackee.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'lava_dispatcher/ipmi.py' --- lava_dispatcher/ipmi.py 2013-07-09 05:54:26 +0000 +++ lava_dispatcher/ipmi.py 2013-07-09 14:48:10 +0000 @@ -64,8 +64,9 @@ def get_power_status(self): """ Command 'ipmitool power status' will output 'Chassis Power is on' - or 'Chassis Power is off' """ - return self.__ipmi_cmd_output("power status").split(' ')[-1] + or 'Chassis Power is off'. + Before we return the last string, the '\n' needs to be strip.""" + return self.__ipmi_cmd_output("power status").split(' ')[-1].rstrip() class IpmiPxeBoot(object): """