Fix call of _get_errata_data

Function was called incorrectly.

Change-Id: I9696d02218c4fe618af4e343f73836e3c72e502b
This commit is contained in:
Ana Krivokapic 2015-01-12 14:22:56 +01:00
parent 6965d80958
commit 469123e578
1 changed files with 2 additions and 2 deletions

View File

@ -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)