From cdc60ba4aad70fa767d1c15cfcb9c4e1fdf8a58a Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Tue, 7 Mar 2017 12:43:09 +0200 Subject: [PATCH] [ci] Add status field to resource identifiers Also, this patch splis all identifiers to separate lines Change-Id: Ia2e5f2e7b51eeb66aa625eeb560862c97bdcc455 --- tests/ci/osresources.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/ci/osresources.py b/tests/ci/osresources.py index 8846fd79..22132c38 100755 --- a/tests/ci/osresources.py +++ b/tests/ci/osresources.py @@ -34,7 +34,7 @@ class ResourceManager(object): REQUIRED_SERVICE = None REPR_KEYS = ("id", "name", "tenant_id", "zone", "zoneName", "pool", - "blob") + "blob", "status") def __init__(self, clients): self.clients = clients @@ -380,9 +380,9 @@ def _print_tabular_resources(resources, table_label): field_labels=("service", "resource type", "identifiers"), table_label=table_label, formatters={"identifiers": - lambda d: " ".join("%s:%s" % (k, v) - for k, v in d.items() - if k not in ("class", "resource_name"))} + lambda d: "\n".join( + "%s:%s" % (k, v) for k, v in d.items() + if k not in ("class", "resource_name"))} ) print("")