

def get_context_data(self, request):
    plugin_id = self.tab_group.kwargs['plugin_id']
    plugin = None
    try:
        plugin = saharaclient.plugin_get(request, plugin_id)
    except Exception as e:
        LOG.error(('Unable to get plugin with plugin_id %s (%s)' % (plugin_id, str(e))))
        exceptions.handle(self.tab_group.request, _('Unable to retrieve plugin.'))
    return {
        'plugin': plugin,
    }

dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/dashboards/project/data_processing/data_plugins/tabs.py DetailsTab.get_context_data/original