From cadbdfeb44ff7ece08e09d9306db452d24e52041 Mon Sep 17 00:00:00 2001 From: Benjamin Poldrack Date: Tue, 27 May 2025 13:34:50 +0200 Subject: [PATCH] Switch faux serials to uppercase This is conforming to our own usecase (INM-7). Otherwise this function is to be replaced by more generic one anyway. --- onyo/lib/inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onyo/lib/inventory.py b/onyo/lib/inventory.py index a1eafe87..473a841d 100644 --- a/onyo/lib/inventory.py +++ b/onyo/lib/inventory.py @@ -951,7 +951,7 @@ def get_faux_serials(self, if num < 1: raise ValueError('The number of faux serial numbers must be >= 1.') - alphanum = string.ascii_lowercase + string.digits + alphanum = string.ascii_uppercase + string.digits faux_serials = set() # TODO: This split actually puts the entire filename in the set if there's no "faux". repo_faux_serials = {str(x.name).split('faux')[-1] for x in self.repo.asset_paths}