From d36d835d087c0737b39bb3166d6203eaa226f5dc Mon Sep 17 00:00:00 2001 From: Vladimir Ostroverkhov Date: Mon, 20 Jun 2016 11:09:09 +0300 Subject: [PATCH] Replaced UUID of goal with name This patch updated the CLI to display the name of the goal associated to an strategy (instead UUID). Related-Bug: #1590416. Change-Id: Ia8bd0c18d63461da2336a690364f034d0f7f2343 --- watcherclient/v1/resource_fields.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/watcherclient/v1/resource_fields.py b/watcherclient/v1/resource_fields.py index 71baebd..72c6578 100644 --- a/watcherclient/v1/resource_fields.py +++ b/watcherclient/v1/resource_fields.py @@ -86,14 +86,13 @@ GOAL_SHORT_LIST_FIELD_LABELS = ['UUID', 'Name', 'Display name'] # Strategies -STRATEGY_FIELDS = ['uuid', 'name', 'display_name', 'goal_uuid'] +STRATEGY_FIELDS = ['uuid', 'name', 'display_name', 'goal_name'] -STRATEGY_FIELD_LABELS = ['UUID', 'Name', 'Display name', 'Goal UUID'] +STRATEGY_FIELD_LABELS = ['UUID', 'Name', 'Display name', 'Goal'] -STRATEGY_SHORT_LIST_FIELDS = ['uuid', 'name', 'display_name', 'goal_uuid'] +STRATEGY_SHORT_LIST_FIELDS = ['uuid', 'name', 'display_name', 'goal_name'] -STRATEGY_SHORT_LIST_FIELD_LABELS = ['UUID', 'Name', 'Display name', - 'Goal UUID'] +STRATEGY_SHORT_LIST_FIELD_LABELS = ['UUID', 'Name', 'Display name', 'Goal'] # Metric Collector METRIC_COLLECTOR_FIELDS = ['uuid', 'created_at', 'updated_at', 'deleted_at',