mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Making salt.wheel.pillar_roots python3 compatible
This commit is contained in:
parent
aacd89077e
commit
45661de295
@ -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_:
|
||||
|
Loading…
Reference in New Issue
Block a user