salt
salt copied to clipboard
NameError: global name 'itertools' is not defined
In the Current build #6204 (worked 1-2 days ago) the following error shows up with my Ubuntu Master speaking to Windows 2008R2 minion. Both Master/Minion have just been updated.
Error:
State: - file
Name: c:/jboss-eap-5.1/jboss-as/bin/service.bat
Function: managed
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "c:\salt\python27\lib\site-packages\salt\state.py", line 1237, in call
*cdata['args'], **cdata['kwargs'])
File "c:\salt\python27\lib\site-packages\salt\states\file.py", line 872, in managed
contents)
File "c:\salt\python27\lib\site-packages\salt\modules\file.py", line 1757, in manage_file
__clean_tmp(sfn)
File "c:\salt\python27\lib\site-packages\salt\modules\file.py", line 57, in __clean_tmp
all_roots = itertools.chain.from_iterable(__opts__['file_roots'].itervalues())
NameError: global name 'itertools' is not defined
Ah, itertools must not be supported on windows.
We'll get this fixed.
Just submitted a pull req. Sorry for the breakage, and thanks for catching that for us.