@staticmethod
def set_region_whitelist(config_dict, regions):
    """set regions for config's region whitelist"""
    if regions:
        config_dict['region_whitelist'] = list(set(regions))
        print('Region whitelist set.')
    else:
        config_dict.pop('region_whitelist', None)
        print('Region whitelist cleared.')
    return config_dict
