Skip to content

Commit

Permalink
Merge pull request #2774 from stveit/fix-portadmin-read-only-if-poe-e…
Browse files Browse the repository at this point in the history
…rror

Do not make portadmin readonly if poe error
  • Loading branch information
lunkwill42 authored Nov 30, 2023
2 parents 064b661 + 2e0c8e9 commit 79b7f97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/nav/web/portadmin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,8 +252,10 @@ def populate_infodict(request, netbox, interfaces):
XMLParseError,
POEStateNotSupportedError,
) as error:
readonly = True
messages.error(request, str(error))
supports_poe = False
_logger.error(
'Error getting PoE information from netbox %s: %s', str(netbox), str(error)
)

if handler and not handler.is_configurable():
add_readonly_reason(request, handler)
Expand Down

0 comments on commit 79b7f97

Please sign in to comment.