salt
salt copied to clipboard
File > Manage seems to be broken.
Running an Ubuntu Master and Windows2008R2 Minion, and during the execution of the file - managed, the error "NameError: global name '_binary_replace' is not defined" is returned.
(http://pastebin.com/REDLpwAR)
--- Example .sls entry
# Configure the jmx-console-users.properties
/jboss-eap-5.1/jboss-as/server/default/conf/props/jmx-console-users.properties:
file:
- managed
- template: jinja
- name: 'c:/jboss-eap-5.1/jboss-as/server/default/conf/props/jmx-console-users.properties'
- source: 'salt://win/repo/jboss-as/jmx-console-users.properties.jinja2'
- require:
- cmd: 'extract-jboss-as'
---Error Message
State: - file
Name: c:/jboss-eap-5.1/jboss-as/server/default/conf/props/jmx-console-users.properties
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 868, in managed
contents)
File "c:\salt\python27\lib\site-packages\salt\modules\file.py", line 1600, in manage_file
bdiff = _binary_replace(name, sfn)
NameError: global name '_binary_replace' is not defined
Thanks for the report. @UtahDave can you look into this?
I wrote the code that's causing the traceback, I'll give it a quick look.
Fixed in https://github.com/saltstack/salt/pull/6120.