Skip to content

Commit

Permalink
op-mode: T6626: Fix for show dhcpv6 server leases
Browse files Browse the repository at this point in the history
  • Loading branch information
natali-rs1985 committed Sep 13, 2024
1 parent eb9e562 commit ec8ceb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/op_mode/dhcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ def _get_formatted_server_leases(raw_data, family='inet'):
ipaddr = lease.get('ip')
state = lease.get('state')
start = lease.get('last_communication')
start = _utc_to_local(start).strftime('%Y/%m/%d %H:%M:%S')
start = _utc_to_local(start).strftime('%Y/%m/%d %H:%M:%S')
end = lease.get('end')
end = _utc_to_local(end).strftime('%Y/%m/%d %H:%M:%S')
end = _utc_to_local(end).strftime('%Y/%m/%d %H:%M:%S') if end else '-'
remain = lease.get('remaining')
lease_type = lease.get('type')
pool = lease.get('pool')
Expand Down

0 comments on commit ec8ceb9

Please sign in to comment.