summaryrefslogtreecommitdiffstats
path: root/cooling-type/main.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix exit status codesWilliam A. Kennington III2018-10-191-4/+2
| | | | | | | | | | Using an exit status of -1 everywhere leads to the status being converted to 255 when output to a calling application. While this does signify an error it has a reserved meaning for exit status out of range. Lets use a valid general exit status of 1 instead. Change-Id: I326701c78985e34c430c258fe31d9e910da10405 Signed-off-by: William A. Kennington III <wak@google.com>
* cooling-type: Use lookupAndCallMethodMatthew Barth2018-05-171-1/+10
| | | | | | | | | | | | | Have phosphor-cooling-type fail with a DBusMethodError exception when a failure occurs on updating inventory. Resolves: openbmc/openbmc#2628 Tested: Cooling type properties still set correctly Change-Id: Ia7e3379fc7d75c70e9c71d4f940f9da84b9f5774 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
* Have cooling-type use the common argument.hppMatt Spinler2017-05-241-0/+1
| | | | | | | | | | | | The cooling-type application should use the common header file for the ArgumentParser class now that one is available. Also fixed where a static ArgumentParser constant was being initialized. Change-Id: I1fb0dfe3bd0c6e0200ad7c718ef2a3def5476f3f Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Implement changes to read GPIO device for cooling type.Brandon Wyman2017-05-221-27/+29
| | | | | Change-Id: If40a54510fb05d67ee0bfdf24026c1d7470897ca Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
* Implement updating the inventory propertiesBrandon Wyman2017-05-191-1/+1
| | | | | | | | Implement code needed to update the chassis AirCooled and WaterCooled properties. Change-Id: I9a67d1129e99f841200241e2daae08fb6119d9d3 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
* Fill in shell functions/files for cooling type.Brandon Wyman2017-05-191-0/+75
Change-Id: I8d18d3141e955adeffdd8122ebb17549c88edd77 Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
OpenPOWER on IntegriCloud