From 686254e82f4279e8b8b51547efda201e416330f4 Mon Sep 17 00:00:00 2001 From: thuva4 Date: Thu, 8 Mar 2018 14:00:19 +0530 Subject: remove unwanted params from arguments Remove -name from GetOne and Delete command arguments Change-Id: I163444467e0bac95df2d11f5bddda6bc441c4c21 Signed-off-by: thuva4 --- testapi/testapi-client/testapiclient/pods.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'testapi') diff --git a/testapi/testapi-client/testapiclient/pods.py b/testapi/testapi-client/testapiclient/pods.py index c49f254..bad0c31 100644 --- a/testapi/testapi-client/testapiclient/pods.py +++ b/testapi/testapi-client/testapiclient/pods.py @@ -35,10 +35,9 @@ class PodGetOne(command.ShowOne): def get_parser(self, prog_name): parser = super(PodGetOne, self).get_parser(prog_name) - parser.add_argument('-name', + parser.add_argument('name', default='', - help='Find pod using name', - required=True) + help='Find pod using name') return parser def take_action(self, parsed_args): @@ -74,9 +73,8 @@ class PodDelete(command.Command): def get_parser(self, prog_name): parser = super(PodDelete, self).get_parser(prog_name) - parser.add_argument('-name', + parser.add_argument('name', type=str, - required=True, help='Delete pods using name') return parser -- cgit 1.2.3-korg