Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update_agent: handle new output format for loginctl
In systemd 254 the `loginctl list-sessions --json` output was modified slightly: Before ``` [{"session":"4","uid":1000,"user":"core","seat":"","tty":""}] ``` After ``` [{"session":"17","uid":1000,"user":"core","seat":"","tty":"n/a","state":"active","idle":false,"since":null}] ``` Notice the change from `""` to `"n/a"` for the `tty` field. This change probably happened in one of: - systemd/systemd#27769 - systemd/systemd#27740 - systemd/systemd#27606 Let's update the code to handle the new case and rename the function to be a little more appropriate since the use case for it is narrow. Fixes coreos/fedora-coreos-tracker#1547
- Loading branch information