v:address is nil if missing, but code expects an array
This commit is contained in:
parent
a9d1582b53
commit
fe735408a1
@ -27,6 +27,6 @@
|
|||||||
dir (svc.open state-directory)]
|
dir (svc.open state-directory)]
|
||||||
(accumulate [addresses []
|
(accumulate [addresses []
|
||||||
v (dir:events)]
|
v (dir:events)]
|
||||||
(update-prefixes lan-device addresses (v:output "prefix") system))))
|
(update-prefixes lan-device addresses (or (v:output "prefix") []) system))))
|
||||||
|
|
||||||
{ : changes : run }
|
{ : changes : run }
|
||||||
|
@ -27,6 +27,6 @@
|
|||||||
dir (svc.open state-directory)]
|
dir (svc.open state-directory)]
|
||||||
(accumulate [addresses []
|
(accumulate [addresses []
|
||||||
v (dir:events)]
|
v (dir:events)]
|
||||||
(update-addresses wan-device addresses (v:output "address") system))))
|
(update-addresses wan-device addresses (or (v:output "address") []) system))))
|
||||||
|
|
||||||
{ : update-addresses : deletions : run }
|
{ : update-addresses : deletions : run }
|
||||||
|
Loading…
Reference in New Issue
Block a user