Skip to content

Commit

Permalink
fixup! Use bulk operation for multiple interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Sep 12, 2023
1 parent 095fbfd commit 177edaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nav/portadmin/napalm/juniper.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def get_poe_states(
state = None
return {interface.ifindex: state}

Check warning on line 478 in python/nav/portadmin/napalm/juniper.py

View check run for this annotation

Codecov / codecov/patch

python/nav/portadmin/napalm/juniper.py#L470-L478

Added lines #L470 - L478 were not covered by tests
else:
return self._get_poe_states_bulk(interface)
return self._get_poe_states_bulk(interfaces)

Check warning on line 480 in python/nav/portadmin/napalm/juniper.py

View check run for this annotation

Codecov / codecov/patch

python/nav/portadmin/napalm/juniper.py#L480

Added line #L480 was not covered by tests

@wrap_unhandled_rpc_errors
def _get_poe_state(self, interface: manage.Interface) -> PoeState:
Expand Down

0 comments on commit 177edaf

Please sign in to comment.