def prune_old_keys(): for key in get_all_data('pingdom_*'): if key.split('pingdom_')[1] not in pingdom_keys: delete_data(key) for key in get_all_data('newrelic_*'): if key.split('newrelic_')[1] not in newrelic_keys: delete_data(key)
def clear_resources_keys(): for key in get_all_data('resources:*'): delete_data(key)
def prune_calendar_items(): # We are now pruning all calendar items when reloading the calendar file to remove old entries we don't want. calendar_keys = get_all_data('calendar_*') for key in calendar_keys: delete_data(key)
def prune_old_keys(): for key in get_all_data('pingdom_*'): if key.split('pingdom_')[1] not in pingdom_keys: delete_data(key)