'Convert valid filter options to correct expected format'

def _format_snapshot_filter_options(self, search_opts):

    if ('metadata' in search_opts.keys()):
        try:
            search_opts['metadata'] = ast.literal_eval(search_opts['metadata'])
        except (ValueError, SyntaxError):
            LOG.debug('Could    not    evaluate    value    %s,    assuming    string', search_opts['metadata'])
