def retire_license(active_license):
    """
    retire_license(active_license)

    Loops through the licenses passed into the function and retires each one
    against the Tableau licensing servers
    """
    # Retire each ID
    retire_cmd = "%s -return %s -reason 1 -comm "\
        "soap -commServer %s" % (cust_binary, active_license, tableau_url)

    # Delete trial IDs, those cannot be retired
    if active_license in 'LOCAL_TRIAL_FID':
        retire_cmd = "%s -delete %s" % (cust_binary, active_license)

    print "Retiring %s" % active_license
    subprocess.call(retire_cmd, shell=True)
dataset/ETHPy150Open facebook/IT-CPE/code/lib/scripts/rotate_tableau_license.py/retire_license/swapped operands of `in`