Re: [PATCH] Added --basic output option to call

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux