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 2022-02-20 17:15:14 -05:00
parent 888fb58c4f
commit f7f487ac18
1 changed files with 1 additions and 1 deletions

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,