salt icon indicating copy to clipboard operation
salt copied to clipboard

NameError: global name 'itertools' is not defined

Open cdnporkchop opened this issue 13 years ago • 2 comments

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

cdnporkchop avatar Jul 17 '13 17:07 cdnporkchop

Ah, itertools must not be supported on windows.

We'll get this fixed.

basepi avatar Jul 17 '13 20:07 basepi

Just submitted a pull req. Sorry for the breakage, and thanks for catching that for us.

basepi avatar Jul 17 '13 20:07 basepi