vm.delete added

This commit is contained in:
ahmadbilalkhalid 2019-09-04 18:21:28 +05:00
parent 5e543fa2aa
commit 9c10e53e7b

View file

@ -55,6 +55,16 @@ def stop(name, realm, seed, uuid):
print(load_dump_pretty(r.content)) print(load_dump_pretty(r.content))
@vm.command("delete")
@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("--uuid", required=True)
def delete(name, realm, seed, uuid):
r = vm_command("delete", OTPCredentials(name, realm, seed), uuid)
print(load_dump_pretty(r.content))
@vm.command("status") @vm.command("status")
@click.option("--name", envvar="OTP_NAME", required=True) @click.option("--name", envvar="OTP_NAME", required=True)
@click.option("--realm", envvar="OTP_REALM", required=True) @click.option("--realm", envvar="OTP_REALM", required=True)