diff options
author | Steve Baker <sbaker@redhat.com> | 2016-02-25 14:06:13 +1300 |
---|---|---|
committer | Steve Baker <sbaker@redhat.com> | 2016-03-01 11:42:31 +1300 |
commit | 0b2a87a405c5d9fb9495f67e71c2ab5124c2cb75 (patch) | |
tree | a784fdb501c35ef7dc38177091f76391d500ff75 /setup.cfg | |
parent | ebdf0ebc941eb1d99452347cf69e73ab901e1301 (diff) | |
download | python-heatclient-0b2a87a405c5d9fb9495f67e71c2ab5124c2cb75.tar.gz |
Register a log formatter for stack event list
Currently "stack event list" overrides the value formatter to use for
the default log formatting style. This change creates a formatter
namespace for event list so that it can have its own custom list of
formatters.
This means that the 'log' formatter is now registered and is the
default. The formatter expects event objects rather than dicts, and
so ignores the columns argument.
The intention is that this will be the first of more custom formatters
for event list, making the effort to establish this pattern worth it.
Change-Id: I22f884f871d7467c8abadec477b3e732eb8c2150
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -72,6 +72,14 @@ openstack.orchestration.v1 = stack_template_show = heatclient.osc.v1.stack:TemplateShowStack stack_update = heatclient.osc.v1.stack:UpdateStack +heatclient.event.formatter.list = + log = heatclient.osc.v1.event:LogFormatter + table = cliff.formatters.table:TableFormatter + csv = cliff.formatters.commaseparated:CSVLister + value = cliff.formatters.value:ValueFormatter + yaml = cliff.formatters.yaml_format:YAMLFormatter + json = cliff.formatters.json_format:JSONFormatter + [global] setup-hooks = pbr.hooks.setup_hook |