Closed emibcn closed 10 years ago
Hi @emibcn, I cannot reproduce your bug, I printed the output var for a stopped and running container and I get the following data from _run function:
['Name: static-site', 'State: STOPPED'] ['Name: base', 'State: RUNNING', 'PID: 12401', 'IP: 192.168.0.170', 'CPU use: 0.30 seconds', 'BlkIO use: 17.00 MiB', 'Memory use: 20.88 MiB', 'Link: veth7H13G4', ' TX bytes: 2.30 KiB', ' RX bytes: 14.10 KiB', ' Total bytes: 16.40 KiB']
so the state is exactly in output[1], otherwise I notice that few lines below pids value is wrong and I just push a fix for that in https://github.com/claudyus/LXC-Web-Panel/commit/fcc88f022c33d3babee85ba9879d46b19764be1e .
I'm using lxc 1.0.3 from the proposed PPA. Thanks for your pull-request.
Hi @emibcn, I cannot reproduce your bug, I printed the output var for a stopped and running container and I get the following data from _run function:
so the state is exactly in output[1], otherwise I notice that few lines below pids value is wrong and I just push a fix for that in https://github.com/claudyus/LXC-Web-Panel/commit/fcc88f022c33d3babee85ba9879d46b19764be1e .
I'm using lxc 1.0.3 from the proposed PPA. Thanks for your pull-request.