Default value for the '--group' param
The CLI group info command now uses preset path to the validation groups file if no other is supplied. The default value is set in both CLI and the 'group_information' method of the ValidationActions class. bghz#1972155 Signed-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: Iff12dff9a870e3e3b89e8070bc251401498ea623
This commit is contained in:
parent
4d1df7b0e7
commit
bcf47f5bc5
|
@ -63,6 +63,7 @@ class ShowGroup(ShowOne):
|
|||
parser.add_argument('--group', '-g',
|
||||
metavar='<group_name>',
|
||||
dest="group",
|
||||
default=constants.VALIDATION_GROUPS_INFO,
|
||||
help=("Show a specific group."))
|
||||
return parser
|
||||
|
||||
|
|
|
@ -410,7 +410,7 @@ class ValidationActions(object):
|
|||
vlog = ValidationLogs(log_path)
|
||||
return vlog.get_results(uuid)
|
||||
|
||||
def group_information(self, groups):
|
||||
def group_information(self, groups=constants.VALIDATION_GROUPS_INFO):
|
||||
"""Get Information about Validation Groups
|
||||
|
||||
This is used to print table from python ``Tuple`` with ``PrettyTable``.
|
||||
|
|
Loading…
Reference in New Issue