def remove_none(options):
    """
    Simple function that traverse the options and removed any None items
    CloudCA really dislikes null values.

    :param options:
    :return:
    """
    new_dict = {}
    for k, v in options.items():
        if v:
            new_dict[k] = v

    # this is super hacky and gross, cloudca doesn't like null values
    if new_dict.get('extensions'):
        if len(new_dict['extensions']['subAltNames']['names']) == 0:
            del new_dict['extensions']['subAltNames']

    return new_dict