From 99f20808a19bf296ab298ff8ee6ccc7cbf47058f Mon Sep 17 00:00:00 2001 From: Anusha Ramineni Date: Thu, 3 Mar 2016 09:14:41 +0530 Subject: [PATCH] Update help message for datasource CLI This commit is to update the help messages to support datasource related data can be queried using both datasource name or ID Change-Id: I93eb5063f02cf114715ba876b081f32818872187 Closes-Bug:#1552212 --- congressclient/osc/v1/datasource.py | 36 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/congressclient/osc/v1/datasource.py b/congressclient/osc/v1/datasource.py index 4e4567c..cbd20f9 100644 --- a/congressclient/osc/v1/datasource.py +++ b/congressclient/osc/v1/datasource.py @@ -53,8 +53,8 @@ class ListDatasourceTables(lister.Lister): parser = super(ListDatasourceTables, self).get_parser(prog_name) parser.add_argument( 'datasource_name', - metavar="", - help="Name of the datasource") + metavar="", + help="Name or ID of the datasource") return parser def take_action(self, parsed_args): @@ -81,8 +81,8 @@ class ShowDatasourceStatus(show.ShowOne): parser = super(ShowDatasourceStatus, self).get_parser(prog_name) parser.add_argument( 'datasource_name', - metavar="", - help="Name of the datasource") + metavar="", + help="Name or ID of the datasource") return parser def take_action(self, parsed_args): @@ -106,8 +106,8 @@ class ShowDatasourceActions(lister.Lister): parser = super(ShowDatasourceActions, self).get_parser(prog_name) parser.add_argument( 'datasource_name', - metavar="", - help="Name of the datasource") + metavar="", + help="Name or ID of the datasource") return parser def take_action(self, parsed_args): @@ -144,8 +144,8 @@ class ShowDatasourceSchema(lister.Lister): parser = super(ShowDatasourceSchema, self).get_parser(prog_name) parser.add_argument( 'datasource_name', - metavar="", - help="Name of the datasource") + metavar="", + help="Name or ID of the datasource") return parser def take_action(self, parsed_args): @@ -175,8 +175,8 @@ class ShowDatasourceTableSchema(lister.Lister): parser = super(ShowDatasourceTableSchema, self).get_parser(prog_name) parser.add_argument( 'datasource_name', - metavar="", - help="Name of the datasource") + metavar="", + help="Name or ID of the datasource") parser.add_argument( 'table_name', metavar="", @@ -207,8 +207,8 @@ class ListDatasourceRows(lister.Lister): parser = super(ListDatasourceRows, self).get_parser(prog_name) parser.add_argument( 'datasource_name', - metavar="", - help="Name of the datasource to show") + metavar="", + help="Name or ID of the datasource to show") parser.add_argument( 'table', metavar="", @@ -242,8 +242,8 @@ class ShowDatasourceTable(show.ShowOne): parser = super(ShowDatasourceTable, self).get_parser(prog_name) parser.add_argument( 'datasource_name', - metavar='', - help="Name of datasource") + metavar='', + help="Name or ID of datasource") parser.add_argument( 'table_id', metavar='', @@ -308,8 +308,8 @@ class DeleteDatasource(command.Command): parser = super(DeleteDatasource, self).get_parser(prog_name) parser.add_argument( 'datasource', - metavar="", - help="Name of the datasource to delete") + metavar="", + help="Name or ID of the datasource to delete") return parser def take_action(self, parsed_args): @@ -330,8 +330,8 @@ class DatasourceRequestRefresh(command.Command): parser = super(DatasourceRequestRefresh, self).get_parser(prog_name) parser.add_argument( 'datasource', - metavar="", - help="Name of the datasource to poll") + metavar="", + help="Name or ID of the datasource to poll") return parser def take_action(self, parsed_args):