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
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
Not sure I've to check again, but since I noticed that fleetctl status is a wrapper around systemctl status through ssh, it just executes the command and gets its exit status, so even if the command did execute successfully, the return code from systemctl status can be non-zero! so we just break and that's it.
systemctl status exit code are also not that standard since they may return same exit code for nonexistent units and stopped units. or even if the unit is not on the disk anymore... systemd/systemd#1092
If we can get the output first check some fields, then we may fallback to the exit code, and probably break from that loop only if the error is not related "systemctl status-of-unit", IOW break for all other errors even for systemctl ones...
I dunno, this has been the behaviour forever. Should we really break it now? People needing granular information can always do a for loop around fleetctl status (which incidentally will perform basically the same since we moved to individual Unit() call(
Steps to reproduce:
hello@.service
:The text was updated successfully, but these errors were encountered: