James Cammarata wrote:
This patch adds another output option to call, which does very minimal
formatting on the output.  Essentially, it prints a header (containing the
minion name and return value of the command), and then prints the returned
stdout data.  If the stderr results aren't empty, it will print those as
well.

Sample output:

$ func "xen*" call --basic command run "md5sum /etc/shadow"
**** Results for xen2 (return value: 0) ****
7ac334c1470f6f3a335fbc2b2c911a62  /etc/shadow

**** Results for xen1 (return value: 0) ****
cb4358f028203621571f855ca670d7fd  /etc/shadow

$ func "xen*" call --basic command run "md5sum /etc/blah"
**** Results for xen2 (return value: 1) ****
**** Output to STDERR ****
md5sum: /etc/blah: No such file or directory

**** Results for xen1 (return value: 1) ****
**** Output to STDERR ****
md5sum: /etc/blah: No such file or directory


This makes the output a bit more readable for the standard sys-admin.

I'm not sure if you guys have a separate devel branch, so this patch was
made against master.  If you have a devel branch and want me to patch
against that, just point me towards the git repo url for it.

Merged and pushed.

Adrian

_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to