LXC-Web-Panel icon indicating copy to clipboard operation
LXC-Web-Panel copied to clipboard

Ubuntu server can have not only folders in /var/lib/lxc/ but some logs and other files.

Open bigbn opened this issue 12 years ago • 2 comments

List of nodes in panel also contains strange nodes like [filename].log for example, coz listdir includes files too.

line 97: in lxclite / init.py try: ct_list = os.listdir('/var/lib/lxc/') shoud be something like this: try: ct_list = [d for d in os.listdir('/var/lib/lxc/') if os.path.isdir(os.path.join('/var/lib/lxc/', d))]

bigbn avatar Sep 11 '13 18:09 bigbn

+1, seems like there's a fix already exists, but still not merged https://github.com/lxc-webpanel/LXC-Web-Panel/pull/48

ishakuta avatar Dec 08 '13 23:12 ishakuta

+1, for the fix as well

gereon avatar Apr 10 '14 13:04 gereon