Remove email dependency for order

This commit is contained in:
PCoder 2019-09-19 15:49:09 +05:30
parent c17d9b9059
commit ed74b2ecb3

View file

@ -14,11 +14,9 @@ def order():
@click.option("--name", envvar="OTP_NAME", required=True)
@click.option("--realm", envvar="OTP_REALM", required=True)
@click.option("--seed", envvar="OTP_SEED", required=True)
@click.option("--email", required=True)
def list(name, realm, seed, email):
def list(name, realm, seed):
data = {
**OTPCredentials(name, realm, seed).get_json(),
"email": email
**OTPCredentials(name, realm, seed).get_json()
}
r = requests.get("{}/order/list".format(config('UCLOUD_PAY_SERVER')),
json=data)