control: Throw exception when no zones exist at poweron
A configuration of 1 or more zones is required (which includes a
configuration of fans within those zone(s)), so throw an exception that
will crash fan control if there are no zones configured once a system is
powered on.
Since fan control could be waiting to find its JSON configuration files
from the compatible interface, if that's never received by the time a
poweron occurs, this will crash fan control. Essentially, fan control
should already be configured prior to any poweron if its JSON
configuration files are located in the default or override locations.
However, if it should get the location of the JSON configuration files
from the compatible interface, then this exception ensures that
interface provided the location prior to a poweron.
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Change-Id: Ie421fb7dd98db7013aef8ae3bb61864756e493ce
1 file changed