Ejemplo n.º 1
0
def do_delete(args):
    name = args.name

    url = _get_url(args)
    keyfile = _get_keyfile(args)
    auth_user, auth_password = _get_auth_info(args)

    client = XoClient(base_url=url, keyfile=keyfile)

    if args.wait and args.wait > 0:
        response = client.delete(name,
                                 wait=args.wait,
                                 auth_user=auth_user,
                                 auth_password=auth_password)
    else:
        response = client.delete(name,
                                 auth_user=auth_user,
                                 auth_password=auth_password)

    print("Response: {}".format(response))
Ejemplo n.º 2
0
def do_delete(args):
    name = args.name

    url = _get_url(args)
    keyfile = _get_keyfile(args)
    auth_user, auth_password = _get_auth_info(args)

    client = XoClient(base_url=url, keyfile=keyfile)

    if args.wait and args.wait > 0:
        response = client.delete(
            name, wait=args.wait,
            auth_user=auth_user,
            auth_password=auth_password)
    else:
        response = client.delete(
            name, auth_user=auth_user,
            auth_password=auth_password)

    print("Response: {}".format(response))