database: sort protected namespaces before storing them

This makes the order in which they are reported consistent,
as the namespaces are stored in a set.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan committed 2022-02-22 07:47:38 -05:00
1 parent 888fb58c4f
commit f7f487ac18
1 file changed
+1 -1
+1 -1
View File
@@ -597,7 +597,7 @@ class MoonrakerDatabase:
elif namespace not in self.protected_namespaces:
self.protected_namespaces.add(namespace)
self.insert_item("moonraker", "database.protected_namespaces",
list(self.protected_namespaces))
sorted(self.protected_namespaces))
def wrap_namespace(self,
namespace: str,