Py3 compatibility

This commit is contained in:
Pedro Algarvio 2015-01-28 15:09:07 +00:00
parent 2f7c55d0fa
commit 36d1715112

View File

@ -1430,7 +1430,7 @@ class SaltRaetEventerMaster(SaltRaetEventer):
if self.opts.value.get('cluster_mode'):
if msg.get('origin') is None:
masters = (self.availables.value &
set((remote.name for remote in self.road_stack.value.remotes.values()
set((remote.name for remote in six.itervalues(self.road_stack.value.remotes)
if remote.kind == kinds.applKinds.master)))
for name in masters:
remote = self.road_stack.value.nameRemotes[name]