Merge "Fix call of _get_errata_data"
This commit is contained in:
commit
ccebd5bf2f
@ -146,7 +146,7 @@ def _find_uuid_by_mac(host, auth, organization, addresses):
|
|||||||
raise NodeNotFound()
|
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."""
|
"""Get the errata here, while it's hot."""
|
||||||
|
|
||||||
url = '{host}/katello/api/v2/systems/{id}/errata'.format(host=host,
|
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.
|
# TODO(rdopiera) Should probably catch that requests exception here.
|
||||||
try:
|
try:
|
||||||
data = self._get_errata_data(host, auth, uuid)
|
data = _get_errata_data(host, auth, uuid)
|
||||||
except NoErrataError:
|
except NoErrataError:
|
||||||
return context
|
return context
|
||||||
context['errata'] = tables.ErrataTable(request, data=data)
|
context['errata'] = tables.ErrataTable(request, data=data)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user