diff options
author | Alexander Pyhalov <apyhalov@gmail.com> | 2014-12-15 16:22:11 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@omniti.com> | 2014-12-15 16:01:53 -0500 |
commit | a74909fd1b8a12f99797bbadb7a8af8bdca8596c (patch) | |
tree | 6b99de9402809d91ef5a4424dcdd48b85f3aaf3b /usr/src | |
parent | 5fd5c68917c02ae3dd752fac0ce9f7a10d02e94f (diff) | |
download | illumos-joyent-a74909fd1b8a12f99797bbadb7a8af8bdca8596c.tar.gz |
5435 libbe_py should export global_active boot environment property
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Alexander Eremin <a.eremin@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/pylibbe/common/libbe_py.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/lib/pylibbe/common/libbe_py.c b/usr/src/lib/pylibbe/common/libbe_py.c index f07f32b59a..bd9b3187ed 100644 --- a/usr/src/lib/pylibbe/common/libbe_py.c +++ b/usr/src/lib/pylibbe/common/libbe_py.c @@ -857,6 +857,11 @@ convertBEInfoToDictionary(be_node_list_t *be, PyObject **listDict) return (B_FALSE); } + if (PyDict_SetItemString(*listDict, BE_ATTR_GLOBAL_ACTIVE, + (be->be_global_active ? Py_True : Py_False)) != 0) { + return (B_FALSE); + } + if (be->be_space_used != 0) { if (PyDict_SetItemString(*listDict, BE_ATTR_SPACE, PyLong_FromUnsignedLongLong(be->be_space_used)) != 0) { |