claudyus / LXC-Web-Panel

LXC Web Panel improved for lxc 1.0+
http://claudyus.github.io/LXC-Web-Panel/
Other
221 stars 68 forks source link

Fix for retrieving multiple (incorrect) ipv4 address #75

Closed susu closed 9 years ago

susu commented 9 years ago

For example: I have containers called debian, debian-2, debian-3, etc... On the main dashboard it displays multiple ipv4 addresses for debian. Actually it shows IP addresses of all of the containers which name contains debian.

This is because grep search for only the name. I've added a plus whitespace, see the diff.

IMHO, the ultimate solution would be if that bash magic would be removed, and the output would be parsed in python.

Best regards, susu