summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Server/Plugins/SSHbase.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/SSHbase.py b/src/lib/Server/Plugins/SSHbase.py
index d9adfdb61..8cc7f956c 100644
--- a/src/lib/Server/Plugins/SSHbase.py
+++ b/src/lib/Server/Plugins/SSHbase.py
@@ -179,7 +179,8 @@ class SSHbase(Bcfg2.Server.Plugin.Plugin,
if pubk.endswith('.pub')]
pubkeys.sort()
for pubkey in pubkeys:
- for entry in self.entries[pubkey].entries.values():
+ for entry in sorted(self.entries[pubkey].entries.values(),
+ key=lambda e: e.specific.hostname or e.specific.group):
specific = entry.specific
hostnames = []
if specific.hostname and specific.hostname in names: