'Retrieve storage pools that match user-configured search pattern.'

def _get_storage_pools(self):

    if self.configuration.safe_get('netapp_storage_pools'):
        msg = "The    option    'netapp_storage_pools'    is    deprecated    and    will    be    removed    in    the    future    releases.    Please    use    the    option    'netapp_pool_name_search_pattern'    instead."
        versionutils.report_deprecated_feature(LOG, msg)
    pool_regex = na_utils.get_pool_name_filter_regex(self.configuration)
    storage_pools = self._client.list_storage_pools()
    filtered_pools = []
    for pool in storage_pools:
        pool_name = pool['label']
        if pool_regex.match(pool_name):
            msg = "Pool    '%(pool_name)s'    matches    against    regular    expression:    %(pool_pattern)s"
            LOG.debug(msg, {'pool_name': pool_name, 'pool_pattern': pool_regex.pattern})
            filtered_pools.append(pool)
        else:
            msg = "Pool    '%(pool_name)s'    does    not    match    against    regular    expression:    %(pool_pattern)s"
            LOG.debug(msg, {'pool_name': pool_name, 'pool_pattern': pool_regex.pattern})
    return filtered_pools
