-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bootconfig: fix get_current_bcd_store for PyMI
When PyMI replaced the WMI implementation, the method contract for `conn.BcdStore.OpenStore` changed, leading to an error: ```bash ValueError: not enough values to unpack (expected 2, got 1) ``` Under PyMI, the following returns one element if the store is found, two elements otherwise: ```python >> conn.BcdStore.OpenStore(File="fake") (False, None) >> conn.BcdStore.OpenStore(File="") (<pymi_object: >,) ``` Fixes: #146 Change-Id: Ibb298e4c92c451946a3ac4cfd2e436b2b3c203cf Signed-off-by: Adrian Vladu <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters