saltstack/salt — Issue #785: state.py doesn't consume arbitrary arguments and pass them through to underlying modules
Author: blast-hardcheese
Created: 2012-02-28 22:31:11+00:00
State: open

In an attempt to add debconf support to apt.py, I mistakenly believed that unhandled arguments from a state would be passed in as kwargs. This assumption turned out to be false, but after a discussion with SEJeff we both came to the conclusion that this is broken.

Are there any reasons for not just handling this in the normal "pythonic" way, propagating information until it is explicitly handled? The chain here seems pretty short:

state.py -> state/*.py -> modules/*.py, it does seem like it would involve significant modifications to state.py, namely removing function arg introspection, passing all arguments directly into state/*.py.