You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked returncode after calling sys_run, the bug today is i call (lxc-stop -k -n %s) but not ((lxc-stop -k -n %s) % lxc_name). So the shell regard "%s" as lxc_name. I have checked the returncode after calling this, but the calling is a "grep RUNNING". It return not 0, the same with a stopped container. Docklet misakes it for a stopped container. It is not because that I call sys_run without checking returncode.
I recommend not encapsulating sys call in sys_run, you can directly call subprocess.run with check=True, or we do not need to using this python 3.5 new api.
not just calling sys_run and assume it will execute correctly. sometimes it will fail and the failure info will get lost.
The text was updated successfully, but these errors were encountered: