saltstack / salt

Software to automate the management and configuration of any infrastructure or application at scale. Get access to the Salt software package repository here:
https://repo.saltproject.io/
Apache License 2.0
14.1k stars 5.47k forks source link

Use outputters in salt-cp command line #22704

Closed arthurzenika closed 9 years ago

arthurzenika commented 9 years ago

salt-cp returns a dictionary to the terminal

# salt-cp \* vimrc_tmpl /root/.vimrc
{'arthur_california_cweb': {'/root/.vimrc': True},
 'arthur_california_redis': {'/root/.vimrc': True},
 'arthur_california_sdev': {'/root/.vimrc': True},
 'arthur_california_uarchive': {'/root/.vimrc': True},
 'minion01': {'/root/.vimrc': True}}

It would be nice for salt-cp to use the outputters that we are used to in salt-call and other salt command lines.

Additionally being able to ask for a json output (or other outputter) would be welcome.

thatch45 commented 9 years ago

https://github.com/saltstack/salt/blame/develop/salt/cli/cp.py The blame will tell you why :) I will toss it in

rallytime commented 9 years ago

This looks to be fixed by the pull request referenced above, so I am going to close this one out. If more work needs to be done here, please leave a comment and we will certainly address any new concerns. Thanks!