modernize took out the next and the name

This commit is contained in:
Thomas S Hatch 2014-11-17 16:37:07 -07:00
parent 3f0ebfc3eb
commit 4c3204cff5

View File

@ -555,7 +555,7 @@ class SaltLoadPillar(ioflo.base.deeding.Deed):
self.master_estate_name.value = master.name
route = {'src': (self.road_stack.value.local.name, None, None),
'dst': (six.itervalues(self.road_stack.value.remotes), None, 'remote_cmd')}
'dst': (next(six.itervalues(self.road_stack.value.remotes)).name, None, 'remote_cmd')}
load = {'id': self.opts.value['id'],
'grains': self.grains.value,
'saltenv': self.opts.value['environment'],