diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-23 13:24:01 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-25 14:35:41 +0200 |
commit | 3b40ec7918531cf60d9d4b7749d97ea3f0bf1b1f (patch) | |
tree | d2e3e6dbf7e36007228234bc991275cdc1c16bb5 /src/utils/probe.py | |
parent | 51258613cc07ca8f6def8d0d15f6152d85a4c652 (diff) |
sw_inventory: consolidate os_probe logic
Reuse os_probe() function from probe.py and change the fallback
case to "unknown" to prevent OS id mismatch in ogserver.
The OS id mismatch causes the images to stop being associated with
partitions after the /refresh command.
Diffstat (limited to 'src/utils/probe.py')
-rw-r--r-- | src/utils/probe.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/probe.py b/src/utils/probe.py index 6919821..2ed029b 100644 --- a/src/utils/probe.py +++ b/src/utils/probe.py @@ -177,4 +177,4 @@ def os_probe(mountpoint): elif os.path.exists(winreghives): return getwindowsversion(winreghives) else: - return '' + return 'unknown' |