The output of the script looks really nice. Sadly I wasn't able to get it to work on my nodes.
$ uname -a
Linux btcaz 5.4.0-1046 #48~18.04.1-Ubuntu SMP Tue Apr 13 19:41:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.5 LTS
Release: 18.04
Codename: bionic
$ python3 --version
Python 3.6.9
$ ./suez
Traceback (most recent call last):
File "./suez", line 5, in <module>
suez()
File "/usr/lib/python3/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/azureuser/src/suez/suez.py", line 46, in suez
ln = LndClient()
File "/home/azureuser/src/suez/lndclient.py", line 9, in __init__
self.refresh()
File "/home/azureuser/src/suez/lndclient.py", line 12, in refresh
gi = self._run("getinfo")
File "/home/azureuser/src/suez/lndclient.py", line 96, in _run
j = subprocess.run(("lncli",) + args, capture_output=True)
File "/usr/lib/python3.6/subprocess.py", line 423, in run
with Popen(*popenargs, **kwargs) as process:
TypeError: __init__() got an unexpected keyword argument 'capture_output'
The output of the script looks really nice. Sadly I wasn't able to get it to work on my nodes.
$ uname -a
Linux btcaz 5.4.0-1046 #48~18.04.1-Ubuntu SMP Tue Apr 13 19:41:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
$ python3 --version
Python 3.6.9
$ ./suez