Add CI wiki page to driver listing
The 'dict' output format prints the CI wiki name, but it is missing in the 'str' output format. Adding CI wiki page to the 'str' output format. Change-Id: Ib62864221702d18a4f49118180b9af65f069ec4a
This commit is contained in:
parent
451e4fcda4
commit
2a8d7f858c
@ -29,6 +29,8 @@ parser.add_argument("--format", default='str', choices=['str', 'dict'],
|
||||
# The tests pass ['docs'] on the cmdln, but it's never been used.
|
||||
parser.add_argument("output_list", default=None, nargs='?')
|
||||
|
||||
CI_WIKI_ROOT = "https://wiki.openstack.org/wiki/ThirdPartySystems/"
|
||||
|
||||
|
||||
class Output(object):
|
||||
|
||||
@ -71,6 +73,9 @@ def print_drivers(drivers, config_name, output):
|
||||
if driver.version:
|
||||
output.write('* Version: %s' % driver.version)
|
||||
output.write('* %s=%s' % (config_name, driver.class_fqn))
|
||||
if driver.ci_wiki_name:
|
||||
output.write('* CI info: %s%s' % (CI_WIKI_ROOT,
|
||||
driver.ci_wiki_name))
|
||||
output.write('* Description:')
|
||||
format_description(driver.desc, output)
|
||||
output.write('')
|
||||
|
Loading…
x
Reference in New Issue
Block a user