diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2021-01-11 16:04:05 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2021-01-12 13:37:34 +0000 |
commit | bac90afdc3c952be2a041bb1b669ac56cef7d145 (patch) | |
tree | ca1f971af970a629c54eb42b0761eb2a18b46885 /usr/src/lib/pylibbe/common/libbe_py.c | |
parent | 3561e562ae78c234d96711f36e19360789b0ffe3 (diff) | |
download | illumos-joyent-bac90afdc3c952be2a041bb1b669ac56cef7d145.tar.gz |
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>
Diffstat (limited to 'usr/src/lib/pylibbe/common/libbe_py.c')
-rw-r--r-- | usr/src/lib/pylibbe/common/libbe_py.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <Python.h> @@ -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); |