Mercurial > illumos > git > illumos-gate
changeset 20228:d564e265fe62
13444 libbe_py should provide nextboot information
Reviewed by: C Fraire <cfraire@me.com>
Reviewed by: Dominik Hassler <hadfl@omnios.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
author | Andy Fiddaman <omnios@citrus-it.co.uk> |
---|---|
date | Mon, 11 Jan 2021 16:04:05 +0000 |
parents | 79b2f844941b |
children | 64f5f6e50ae5 |
files | usr/src/lib/pylibbe/common/libbe_py.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/pylibbe/common/libbe_py.c Thu Dec 31 11:40:58 2020 -0800 +++ b/usr/src/lib/pylibbe/common/libbe_py.c Mon Jan 11 16:04:05 2021 +0000 @@ -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 <Python.h> @@ -871,6 +871,11 @@ 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);