Skip to content

Multiple keyword arguments in publish.publish doesn't work #22136

@clinta

Description

@clinta

Testing the example documented.

Only tested on 2014.7 right now. Will try and test develop.

root@minion:/# salt-call publish.publish minion test.kwarg arg="['cheese=spam','spam=cheese']"
local:
    ----------
    minion:
        TypeError encountered executing test.kwarg: kwarg() takes exactly 0 arguments (9 given). See debug log for more info.

The debug log has this:

[salt.minion      ][WARNING ] TypeError encountered executing test.kwarg: kwarg() takes exactly 0 arguments (9 given). See debug log for more info.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/salt/minion.py", line 1022, in _thread_return
    return_data = func(*args, **kwargs)
TypeError: kwarg() takes exactly 0 arguments (9 given)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Execution-ModuleP2Priority 2PlatformRelates to OS, containers, platform-based utilities like FS, system based appsbugbroken, incorrect, or confusing behaviorseverity-medium3rd level, incorrect or bad functionality, confusing and lacks a work aroundstale

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions