Lease filename must be in the same directory
I keep git clones in a source
directory, so I did the following:
ale@pcale:~/tmp$ cd source/
ale@pcale:~/tmp/source$ git clone https://gitlab.isc.org/isc-projects/keama-leases.git
Cloning into 'keama-leases'...
remote: Enumerating objects: 151, done.
remote: Total 151 (delta 0), reused 0 (delta 0), pack-reused 151
Receiving objects: 100% (151/151), 747.81 KiB | 2.22 MiB/s, done.
Resolving deltas: 100% (61/61), done.
ale@pcale:~/tmp/source$ python3 keama-leases/dhcp2kea/dhcp2kea.py ../dhcpd.leases
Traceback (most recent call last):
File "/home/ale/tmp/source/keama-leases/dhcp2kea/dhcp2kea.py", line 328, in <module>
with open(fname.replace('.','-')+"-kea.csv","w") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '--/dhcpd-leases-kea.csv'
There's an easy workaround, so this is a minor issue. Thank you for a convenient tool.