From bac90afdc3c952be2a041bb1b669ac56cef7d145 Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Mon, 11 Jan 2021 16:04:05 +0000 Subject: 13444 libbe_py should provide nextboot information Reviewed by: C Fraire Reviewed by: Dominik Hassler Reviewed by: Toomas Soome Approved by: Gordon Ross --- usr/src/lib/pylibbe/common/libbe_py.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'usr/src/lib/pylibbe/common/libbe_py.c') diff --git a/usr/src/lib/pylibbe/common/libbe_py.c b/usr/src/lib/pylibbe/common/libbe_py.c index 554e029fda..4671001685 100644 --- a/usr/src/lib/pylibbe/common/libbe_py.c +++ b/usr/src/lib/pylibbe/common/libbe_py.c @@ -22,7 +22,7 @@ /* * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright 2012 OmniTI Computer Consulting, Inc. All rights reserved. - * Copyright 2020 OmniOS Community Edition (OmniOSce) Association. + * Copyright 2021 OmniOS Community Edition (OmniOSce) Association. */ #include @@ -871,6 +871,11 @@ convertBEInfoToDictionary(be_node_list_t *be, PyObject **listDict) return (B_FALSE); } + if (PyDict_SetItemString(*listDict, BE_ATTR_ACTIVE_NEXTBOOT, + (be->be_active_next ? Py_True : Py_False)) != 0) { + return (B_FALSE); + } + if (PyDict_SetItemString(*listDict, BE_ATTR_GLOBAL_ACTIVE, (be->be_global_active ? Py_True : Py_False)) != 0) { return (B_FALSE); -- cgit v1.2.3