From 469123e578d4677b2f9d8678f1b0ca1412541e36 Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Mon, 12 Jan 2015 14:22:56 +0100 Subject: [PATCH] Fix call of _get_errata_data Function was called incorrectly. Change-Id: I9696d02218c4fe618af4e343f73836e3c72e502b --- tuskar_sat_ui/nodes/tabs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuskar_sat_ui/nodes/tabs.py b/tuskar_sat_ui/nodes/tabs.py index bb033ea..6e1b9b2 100644 --- a/tuskar_sat_ui/nodes/tabs.py +++ b/tuskar_sat_ui/nodes/tabs.py @@ -146,7 +146,7 @@ def _find_uuid_by_mac(host, auth, organization, addresses): raise NodeNotFound() -def _get_errata_data(self, host, auth, uuid): +def _get_errata_data(host, auth, uuid): """Get the errata here, while it's hot.""" url = '{host}/katello/api/v2/systems/{id}/errata'.format(host=host, @@ -198,7 +198,7 @@ class DetailOverviewTab(nodes_tabs.DetailOverviewTab): # TODO(rdopiera) Should probably catch that requests exception here. try: - data = self._get_errata_data(host, auth, uuid) + data = _get_errata_data(host, auth, uuid) except NoErrataError: return context context['errata'] = tables.ErrataTable(request, data=data)