diff options
author | thuva4 <tharma.thuva@gmail.com> | 2018-03-08 14:00:19 +0530 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-03-08 14:00:19 +0530 |
commit | 686254e82f4279e8b8b51547efda201e416330f4 (patch) | |
tree | 276c92fb0e6d337902638c337f5fba89a5c1221a /testapi | |
parent | f3a5531761a38cf40d0469209145394b31af2088 (diff) |
remove unwanted params from arguments
Remove -name from GetOne and Delete
command arguments
Change-Id: I163444467e0bac95df2d11f5bddda6bc441c4c21
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi')
-rw-r--r-- | testapi/testapi-client/testapiclient/pods.py | 8 |
1 files changed, 3 insertions, 5 deletions
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 |