aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2017-12-24 13:04:44 -0500
committerBryn M. Reeves <bmr@redhat.com>2018-04-17 15:33:39 +0100
commit333918cba972db00d524074491593a2b080a153c (patch)
treeccdec4ecdf04a62aee6cf50cdf9dbd1ddb053966 /tests
parentca755c2ee7b2ba8774b1f36555c6d9d39eeedff5 (diff)
downloadsos-333918cba972db00d524074491593a2b080a153c.tar.gz
[sosreport] Allow policies to change report name generation
This changes the way sos generates the name for the final archive. Policies may now control the naming pattern by changing the new 'name_pattern' attribute. By default, this is set to 'legacy' for all policies, and maintains the naming pattern that sos has used up until this point. A policy may also set name_pattern to 'friendly' which will result in a more user-friendly name for the archive. Additionally, a policy may set name_pattern to a format() parsable string to explicitly set how the tarball should be named. Additionally, this removes the prompt for a 'customer name' on the report when running interactively. Instead, the short hostname of the system is now always used in place of the 'customer name'. A new option, --label, has been added (and which --name will now map to) which if provided will append a user-given string to the archive name after the hostname. This also sets the Red Hat policy to use the new 'friendly' pattern. Closes: #469 Resolves: #1175 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions