phosphor-buttons multihost control
Hello,
There is an isMultiHost() method to control to return true in case the host selector object is available in button-handler.cpp of the phosphor-buttons. And if it is not available, it does not return false and the project gets an error. So we covered this return line with try catch and it works.
But my question is, does this host selector object has to be strictly defined for the project to run properly?
Thanks.
The host Selector object is not strictly required. The host selector object check was only added to identify if the system is single host or multi host system based on host selector availability.
Thanks.
Quoted 17 lines · On Mon, Sep 26, 2022 at 12:58 PM <[email protected]> wrote:
Hello,
There is an
isMultiHost()method to control to return true in case the host selector object is available in button-handler.cpp of the phosphor-buttons. And if it is not available, it does not return false and the project gets an error. So we covered this return line with try catch and it works.But my question is, does this host selector object has to be strictly defined for the project to run properly?
Thanks.
Hi Zehra,
Quoted 5 lines · Naveen Moses
The host Selector object is not strictly required. The host selector object check was only added to identify if the system is single host or multi host system based on host selector availability.
Thanks.
Quoted 11 lines
Quoted 9 lines · On Mon, Sep 26, 2022 at 12:58 PM <[email protected]> wrote:
Hello,
There is an
isMultiHost()method to control to return true in case the host selector object is available in button-handler.cpp of the phosphor-buttons. And if it is not available, it does not return false and the project gets an error. So we covered this return line with try catch and it works.
Based on what Naveen wrote, it would be helpful if you could submit a change to improve the implementation to not have this issue. I'm surprised no one else has ran into the issues you are seeing.
Quoted 8 lines
Quoted 8 lines
But my question is, does this host selector object has to be strictly defined for the project to run properly?
Thanks.
Signature · 1 line
Patrick Williams
Hi Zehra,
I think the issue of isMultiHost() has been resolved with https://github.com/openbmc/phosphor-buttons/commit/4250785723d92b6578176a2d961d47ab66e08124.
BR,
Thang Q. Nguyen
________________________________
From: openbmc <[email protected]> on behalf of Patrick Williams <[email protected]>
Sent: Monday, September 26, 2022 11:27 PM
To: Naveen Moses <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; M. Erhan Yigitbasi <[email protected]>; [email protected] <[email protected]>
Subject: Re: phosphor-buttons multihost control
Hi Zehra,
Quoted 5 lines · Naveen Moses
The host Selector object is not strictly required. The host selector object check was only added to identify if the system is single host or multi host system based on host selector availability.
Thanks.
Quoted 11 lines
Quoted 9 lines · On Mon, Sep 26, 2022 at 12:58 PM <[email protected]> wrote:
Hello,
There is an
isMultiHost()method to control to return true in case the host selector object is available in button-handler.cpp of the phosphor-buttons. And if it is not available, it does not return false and the project gets an error. So we covered this return line with try catch and it works.
Based on what Naveen wrote, it would be helpful if you could submit a change to improve the implementation to not have this issue. I'm surprised no one else has ran into the issues you are seeing.
Quoted 8 lines
Quoted 8 lines
But my question is, does this host selector object has to be strictly defined for the project to run properly?
Thanks.
--
Patrick Williams