def _munge_source_data(data_source=settings.NETDEVICES_SOURCE): """ Read the source data in the specified format, parse it, and return a :param data_source: Absolute path to source data file """ log.msg('LOADING FROM: ', data_source) kwargs = parse_url(data_source) path = kwargs.pop('path') return loader.load_metadata(path, **kwargs)
def _munge_source_data(data_source=settings.NETDEVICES_SOURCE): """ Read the source data in the specified format, parse it, and return a :param data_source: Absolute path to source data file """ log.msg('LOADING FROM: ', data_source) kwargs = parse_url(data_source) path = kwargs.pop('path') return loader.load_metadata(path, **kwargs)