Making salt.wheel.pillar_roots python3 compatible

This commit is contained in:
Nitin Madhok 2014-11-11 17:06:36 -05:00
parent aacd89077e
commit 45661de295

View File

@ -3,6 +3,7 @@
The `pillar_roots` wheel module is used to manage files under the pillar roots
directories on the master server.
'''
from __future__ import absolute_import
# Import python libs
import os
@ -107,7 +108,7 @@ def read(path, saltenv='base', env=None):
ret = []
files = find(path, saltenv)
for fn_ in files:
full = fn_.iterkeys().next()
full = next(fn_.iterkeys())
form = fn_[full]
if form == 'txt':
with salt.utils.fopen(full, 'rb') as fp_: