Fix arguments for issue and fix missing endpoint trailing slash
This commit is contained in:
parent
66a27d435f
commit
5b3bb10677
1 changed files with 5 additions and 5 deletions
|
@ -12,20 +12,20 @@ class ungleichPay(object):
|
|||
'customers-list',
|
||||
help="List customers who have an active VM at ungleich",
|
||||
parents=[parents])
|
||||
self.parser['username'].add_argument('--username', required=True)
|
||||
self.parser['realm'].add_argument('--realm', required=True)
|
||||
self.parser['token'].add_argument(
|
||||
self.parser['customers-list'].add_argument('--username', required=True)
|
||||
self.parser['customers-list'].add_argument('--realm', required=True)
|
||||
self.parser['customers-list'].add_argument(
|
||||
'--token', required=True,
|
||||
help="A valid token obtained from ungleich"
|
||||
)
|
||||
self.parser['ungleich_pay_server'].add_argument(
|
||||
self.parser['customers-list'].add_argument(
|
||||
'--ungleich-pay-server', required=False,
|
||||
help="A valid ungleich pay server url"
|
||||
)
|
||||
self.parser['customers-list'].set_defaults(func=self.customers_list)
|
||||
|
||||
def customers_list(self, args):
|
||||
customers_list_endpoint = "/customers-list"
|
||||
customers_list_endpoint = "/customers-list/"
|
||||
if args.ungleich_pay_server:
|
||||
request_url = args.ungleich_pay_server + customers_list_endpoint
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue