Skip to content
Snippets Groups Projects
Commit 8305b6cb authored by Adriaan de Groot's avatar Adriaan de Groot
Browse files

[dummypython] Demonstrator for #2237

parent 51a1d06c
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,19 @@ def run():
for k in libcalamares.globalstorage.keys():
libcalamares.utils.debug(f" {k}={libcalamares.globalstorage.value(k)}")
libcalamares.utils.debug("*** GLOBAL STORAGE BOGUS KEYS ***")
#
# This is a demonstration of issue #2237, load this module
# with the dummypython/tests/1.global configuration, e.g.
# ./loadmodule -g ../src/modules/dummypython/tests/1.global dummypython
# in the build directory.
#
for k in ("nonexistent", "empty", "numeric", "boolvalue"):
if libcalamares.globalstorage.value(k) is None:
libcalamares.utils.debug(f"NONE {k}={libcalamares.globalstorage.value(k)}")
else:
libcalamares.utils.debug(f" {k}={libcalamares.globalstorage.value(k)}")
libcalamares.utils.debug("*** GLOBAL STORAGE MODIFICATION ***")
libcalamares.globalstorage.insert("item2", "value2")
libcalamares.globalstorage.insert("item3", 3)
......
# SPDX-FileCopyrightText: no
# SPDX-License-Identifier: CC0-1.0
---
firmwareType: bios
bootLoader: grub
empty:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment