salt icon indicating copy to clipboard operation
salt copied to clipboard

Module run error with data.update error in 2014.1.13

Open Darth8878 opened this issue 12 years ago • 2 comments

This (below) ran fine in 2014.1.11 with no errors:

setjre7homeminiondata:
  module.run:
    - name: data.update
    - key: md_jre7home
    - value: {{ _jrepath }}

In 2014.1.13, this produces the following error, and a False result:

----------
          ID: setjre7homeminiondata
    Function: module.run
        Name: data.update
        Result: False
     Comment: An exception occurred in this state: Traceback (most recent call last):
            File "/usr/lib/python2.6/site-packages/salt/state.py", line 1383, in call
              self.verify_ret(ret)
            File "/usr/lib64/python2.6/contextlib.py", line 34, in __exit__
              self.gen.throw(type, value, traceback)
            File "/usr/lib/python2.6/site-packages/salt/utils/context.py", line 43, in func_globals_inject
              yield
            File "/usr/lib/python2.6/site-packages/salt/state.py", line 1382, in call
              **cdata['kwargs'])
            File "/usr/lib/python2.6/site-packages/salt/states/module.py", line 203, in run
              if ret['changes'].get('ret', {}).get('retcode', 0) != 0:
          AttributeError: 'bool' object has no attribute 'get'
 Changes:   
----------

Since the formulas I have that use this are not set to fail fast, they work (for now), but if my sponsor ends up requesting a true "clean" (i.e., fail fast enabled) run, then this will fail other formulas/states.

Darth8878 avatar Nov 06 '14 14:11 Darth8878

Issue was confirmed in 2014.1.13, also confirmed issue is fixed in HEAD of 2014.1, also verified fix in latest v2014.7.0rc7.. If you can, try out either.

pitatus avatar Nov 07 '14 16:11 pitatus

Verified in 2014.7.0 from epel6 for CentOS 6.6

Sorry this took so long. We're in a secure environment over here, so it's hard to get stuff in (and even harder getting stuff out).

Darth8878 avatar Nov 18 '14 19:11 Darth8878