def has_key_true(adjustspec, key):
    """ Checks if the key is in the adjustspec and if the key is True.

        return: :bool: if the key is set and is True
    """
    if (key in adjustspec) and adjustspec[key] is True:
        return True
    else:
        return False