Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a cmd method to the Caller() class for consistency with *Clients #22355

Merged
merged 1 commit into from
Apr 6, 2015
Merged

Added a cmd method to the Caller() class for consistency with *Clients #22355

merged 1 commit into from
Apr 6, 2015

Conversation

whiteinge
Copy link
Contributor

This adds a new method to the Caller() class which is intended for use
from the Python API. The existing CLI behavior is untouched.

Whether to use Caller().function() or Caller().sminion.functions
causes the occasional confusion. Also using function parses args and
kwargs in a way intended for use from the CLI (I think) which can cause
unexpected behavior at the Python level.

@thatch45 thoughts?

This adds a new method to the Caller() class which is intended for use
from the Python API. The existing CLI behavior is untouched.

Whether to use `Caller().function()` or `Caller().sminion.functions`
causes the occasional confusion. Also using `function` parses args and
kwargs in a way intended for use from the CLI (I think) which can cause
unexpected behavior at the Python level.
cachedout pushed a commit that referenced this pull request Apr 6, 2015
Added a `cmd` method to the Caller() class for consistency with *Clients
@cachedout cachedout merged commit a19340d into saltstack:develop Apr 6, 2015
@whiteinge whiteinge deleted the caller-cmd branch April 6, 2015 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants